Fix Settings dialog not showing full settings when signed in

This commit is contained in:
redphx
2024-08-01 19:23:57 +07:00
parent eb340e7f2a
commit ff490be713
2 changed files with 4 additions and 3 deletions

View File

@@ -7854,7 +7854,7 @@ window.addEventListener("load", (e) => {
document.addEventListener("readystatechange", (e) => {
if (document.readyState !== "interactive")
return;
if (STATES.isSignedIn = window.xbcUser?.isSignedIn, STATES.isSignedIn)
if (STATES.isSignedIn = !!window.xbcUser?.isSignedIn, STATES.isSignedIn)
getPref("xhome_enabled") && RemotePlay.preload();
else
HeaderSection.watchHeader();
@@ -7873,7 +7873,7 @@ window.addEventListener(BxEvent.XCLOUD_SERVERS_UNAVAILABLE, (e) => {
STATES.supportedRegion = !1, window.setTimeout(HeaderSection.watchHeader, 2000), SettingsNavigationDialog.getInstance().show();
});
window.addEventListener(BxEvent.XCLOUD_SERVERS_READY, (e) => {
HeaderSection.watchHeader();
STATES.isSignedIn = !0, HeaderSection.watchHeader();
});
window.addEventListener(BxEvent.STREAM_LOADING, (e) => {
if (window.location.pathname.includes("/launch/")) {