diff --git a/modules/core/main_window.ts b/modules/core/main_window.ts index b0f28d5..0a5c291 100644 --- a/modules/core/main_window.ts +++ b/modules/core/main_window.ts @@ -50,7 +50,6 @@ function spawn_main_window(entry_point: string) { prevent_instant_close = false; }); - main_window.loadFile(loader.ui.preloading_page(entry_point)); main_window.once('ready-to-show', () => { diff --git a/modules/renderer/index.ts b/modules/renderer/index.ts index 5f797bd..9d1bd52 100644 --- a/modules/renderer/index.ts +++ b/modules/renderer/index.ts @@ -6,6 +6,8 @@ import * as crash_handler from "../crash_handler"; import * as electron from "electron"; import * as path from "path"; import * as os from "os"; +import BrowserWindow = Electron.BrowserWindow; +import {main_window} from "../core/main_window"; /* first of all setup crash handler */ { @@ -263,4 +265,7 @@ const load_modules = async () => { throw error; } console.log("Loaded native extensions"); + + remote.getCurrentWindow().on('focus', () => main_window.flashFrame(false)); + remote.getCurrentWindow().flashFrame(true); }; \ No newline at end of file