[MM-48079] Dont show server login when GPO has preconfigured servers (#2346)
* Show onboarding server screen only when teams.length is 0 * Add tests * Add more tests * Fix issue where callback would not re-evaluate variables
This commit is contained in:
@@ -60,9 +60,7 @@ export function handleConfigUpdate(newConfig: CombinedConfig) {
|
||||
didCheckForAddServerModal = true;
|
||||
updateServerInfos(newConfig.teams);
|
||||
WindowManager.initializeCurrentServerName();
|
||||
if (newConfig.teams.length === 0) {
|
||||
handleMainWindowIsShown();
|
||||
}
|
||||
handleMainWindowIsShown();
|
||||
}
|
||||
|
||||
log.info('Log level set to:', newConfig.logLevel);
|
||||
|
Reference in New Issue
Block a user