should not reopen window

This commit is contained in:
Jean Ouina 2020-07-08 09:29:33 +02:00
parent 152dcad84a
commit d67bf182c5
2 changed files with 5 additions and 3 deletions

View File

@ -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{

View File

@ -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();
}