Add timeout to app start and cluster add events (#1631)

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala authored and GitHub committed 2020-12-03 20:01:06 +02:00
1 parent 31e914bbef
commit f95c2d1c91
2 files changed
+11 -7

No files matched your search

+3 -1
View File
@@ -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());
}