Some small changes

This commit is contained in:
WolverinDEV 2019-10-27 22:50:25 +01:00
parent d0687a26ba
commit 99b354fd51
2 changed files with 5 additions and 1 deletions

View File

@ -50,7 +50,6 @@ function spawn_main_window(entry_point: string) {
prevent_instant_close = false; prevent_instant_close = false;
}); });
main_window.loadFile(loader.ui.preloading_page(entry_point)); main_window.loadFile(loader.ui.preloading_page(entry_point));
main_window.once('ready-to-show', () => { main_window.once('ready-to-show', () => {

View File

@ -6,6 +6,8 @@ import * as crash_handler from "../crash_handler";
import * as electron from "electron"; import * as electron from "electron";
import * as path from "path"; import * as path from "path";
import * as os from "os"; import * as os from "os";
import BrowserWindow = Electron.BrowserWindow;
import {main_window} from "../core/main_window";
/* first of all setup crash handler */ /* first of all setup crash handler */
{ {
@ -263,4 +265,7 @@ const load_modules = async () => {
throw error; throw error;
} }
console.log("Loaded native extensions"); console.log("Loaded native extensions");
remote.getCurrentWindow().on('focus', () => main_window.flashFrame(false));
remote.getCurrentWindow().flashFrame(true);
}; };