[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:
Tasos Boulis
2022-11-04 16:11:56 +02:00
committed by GitHub
parent 5ab1eceade
commit 935cf3a0cc
7 changed files with 61 additions and 28 deletions

View File

@@ -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);