should not reopen window
This commit is contained in:
parent
152dcad84a
commit
d67bf182c5
|
@ -117,7 +117,7 @@ function startup(bootstrapModules) {
|
|||
|
||||
let version = bootstrapModules.Constants.version
|
||||
|
||||
bootstrapModules.splashScreen.events.on("APP_SHOULD_SHOW", () => {
|
||||
bootstrapModules.splashScreen.events.once("APP_SHOULD_SHOW", () => {
|
||||
mainScreen.setMainWindowVisible(true)
|
||||
})
|
||||
bootstrapModules.splashScreen.events.on("APP_SHOULD_LAUNCH", () => {
|
||||
|
@ -129,7 +129,7 @@ function startup(bootstrapModules) {
|
|||
});
|
||||
})
|
||||
|
||||
mainScreen.events.on("ready", () => {
|
||||
mainScreen.events.once("ready", () => {
|
||||
if(initByUpdate){
|
||||
bootstrapModules.splashScreen.pageReady()
|
||||
}else{
|
||||
|
|
|
@ -432,8 +432,10 @@ function launchMainAppWindow(isVisible) {
|
|||
insideAuthFlow = false;
|
||||
}
|
||||
|
||||
console.log(`Emitting focus as ready`)
|
||||
|
||||
webContentsSend(mainWindow != null && mainWindow.isFocused() ? 'MAIN_WINDOW_FOCUS' : 'MAIN_WINDOW_BLUR');
|
||||
webContentsSend("test", "sdasd", "sltsv")
|
||||
|
||||
if (!lastPageLoadFailed) {
|
||||
connectionBackoff.succeed();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue