From cdd0322bc8c951b8067179f1632ac9da89c52d35 Mon Sep 17 00:00:00 2001 From: Oj Date: Tue, 14 Dec 2021 22:28:49 +0000 Subject: [PATCH] [Splash] Rename splashScreen.js.self --- .../{splashScreen.js.self => _splashScreen.rewrite.js} | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) rename src/splash/{splashScreen.js.self => _splashScreen.rewrite.js} (91%) diff --git a/src/splash/splashScreen.js.self b/src/splash/_splashScreen.rewrite.js similarity index 91% rename from src/splash/splashScreen.js.self rename to src/splash/_splashScreen.rewrite.js index d76e875..b34be29 100644 --- a/src/splash/splashScreen.js.self +++ b/src/splash/_splashScreen.rewrite.js @@ -7,7 +7,7 @@ const ipcMain = require('../ipcMain'); const LOADING_WINDOW_WIDTH = 300; -const LOADING_WINDOW_HEIGHT = process.platform === 'darwin' ? 300 : 350; // TODO: addModulesListener events should use Module's constants +const LOADING_WINDOW_HEIGHT = process.platform === 'darwin' ? 300 : 350; let window; @@ -53,12 +53,6 @@ exports.initSplash = (startMinimized = false) => { // Make splash window events.emit(APP_SHOULD_LAUNCH); }); - if (!startMinimized && window) window.show(); - - // Update and stuff - - events.emit(APP_SHOULD_LAUNCH); - ipcMain.on('SPLASH_SCREEN_QUIT', () => { app.quit(); });