fix(lib/discord/ui/settings): correct isSettingsModulesLoaded status

This commit is contained in:
PalmDevs 2025-05-05 21:22:21 +07:00
parent 930f8221c0
commit 3bca2c4691
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA
2 changed files with 2 additions and 1 deletions

View file

@ -5,7 +5,7 @@ export const _data = [
{},
// SETTING_RENDERER_CONFIG settings
{},
true,
false,
] as [sections: Record<string, SettingsSection>, config: Record<string, SettingsItem>, loaded: boolean]
export const _subs = new Set<SettingsModulesLoadedSubscription>()

View file

@ -37,6 +37,7 @@ registerPlugin(
for (const sub of _subs) sub()
// We don't ever need to call this again
_subs.clear()
_data[2] = true
let ORIGINAL_RENDERER_CONFIG = SettingRendererConfig.SETTING_RENDERER_CONFIG