From 948779769a67adfafd32aa683e5cff4dc4baf01b Mon Sep 17 00:00:00 2001 From: Philipp Pracht Date: Thu, 16 Jan 2025 16:17:34 +0100 Subject: [PATCH] switch visibility of usersettings entry after prep of all data (#4114) --- core/src/AuthorizationSimpleProfileMenu.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/AuthorizationSimpleProfileMenu.svelte b/core/src/AuthorizationSimpleProfileMenu.svelte index b8ac90741c..75a8d6b5bd 100644 --- a/core/src/AuthorizationSimpleProfileMenu.svelte +++ b/core/src/AuthorizationSimpleProfileMenu.svelte @@ -76,7 +76,6 @@ const userSettings = userSettingsConfig ? userSettingsConfig : await LuigiConfig.getConfigValueAsync('settings.userSettings'); - hasUserSettings = Boolean(userSettings); //check if Settings dropdown is enabled for navigation in Shellbar const profileNavData = { items: (await LuigiConfig.getConfigValueAsync('navigation.profile.items')) || [] @@ -102,6 +101,7 @@ AuthLayerSvc.setProfileLogoutFn(logoutItem.customLogoutFn); } profileNav = profileNavData; + hasUserSettings = Boolean(userSettings); }); }, ['navigation.profile']); navProfileListenerInstalled = true;