[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

@@ -406,9 +406,7 @@ function initializeAfterAppReady() {
// only check for non-Windows, as with Windows we have to wait for GPO teams
if (process.platform !== 'win32' || typeof Config.registryConfigData !== 'undefined') {
if (Config.teams.length === 0) {
handleMainWindowIsShown();
}
handleMainWindowIsShown();
}
}