Fix the issue where we sometimes need to wait for GPO teams properly (#2621)
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user