Fix the issue where we sometimes need to wait for GPO teams properly (#2621)

This commit is contained in:
Devin Binnie
2023-03-20 16:24:07 -04:00
committed by GitHub
parent a4444bda1e
commit c85a4497b6
5 changed files with 31 additions and 42 deletions

View File

@@ -117,6 +117,7 @@ export async function initialize() {
// wait for registry config data to load and app ready event
await Promise.all([
app.whenReady(),
Config.initRegistry(),
]);
// no need to continue initializing if app is quitting
@@ -425,10 +426,7 @@ function initializeAfterAppReady() {
callback(urlUtils.isTrustedURL(requestingURL, serverURL));
});
// only check for non-Windows, as with Windows we have to wait for GPO teams
if (process.platform !== 'win32' || typeof Config.registryConfigData !== 'undefined') {
handleMainWindowIsShown();
}
handleMainWindowIsShown();
}
function handleStartDownload() {