diff --git a/src/main/window-manager.ts b/src/main/window-manager.ts index 7013966f08..b1af7d69ac 100644 --- a/src/main/window-manager.ts +++ b/src/main/window-manager.ts @@ -88,7 +88,9 @@ export class WindowManager extends Singleton { await this.mainWindow.loadURL(this.mainUrl); this.mainWindow.show(); this.splashWindow?.close(); - appEventBus.emit({ name: "app", action: "start" }); + setTimeout(() => { + appEventBus.emit({ name: "app", action: "start" }); + }, 1000); } catch (err) { dialog.showErrorBox("ERROR!", err.toString()); } diff --git a/src/renderer/components/app.tsx b/src/renderer/components/app.tsx index 3e8ab30cf8..8fe31fc45d 100755 --- a/src/renderer/components/app.tsx +++ b/src/renderer/components/app.tsx @@ -61,12 +61,14 @@ export class App extends React.Component { await requestMain(clusterSetFrameIdHandler, clusterId, frameId); await getHostedCluster().whenReady; // cluster.activate() is done at this point extensionLoader.loadOnClusterRenderer(); - appEventBus.emit({ - name: "cluster", - action: "open", - params: { - clusterId - } + setTimeout(() => { + appEventBus.emit({ + name: "cluster", + action: "open", + params: { + clusterId + } + }); }); window.addEventListener("online", () => { window.location.reload();