From 99b354fd513efceb575bc41443863a9e4ae6e01e Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 27 Oct 2019 22:50:25 +0100 Subject: [PATCH] Some small changes --- modules/core/main_window.ts | 1 - modules/renderer/index.ts | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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