From a0e288821eb98353acaa3b7ab2279cf167924b88 Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 3 Apr 2022 22:18:12 +0100 Subject: [PATCH] [Splash > Backend] Minor source tweak --- src/splash/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/splash/index.js b/src/splash/index.js index 723778a..149d92a 100644 --- a/src/splash/index.js +++ b/src/splash/index.js @@ -96,7 +96,7 @@ const launchSplashWindow = (startMinimized) => { const win = splashWindow; const wc = win.webContents; - if (process.platform !== 'darwin') win.on('closed', () => { if (!launchedMainWindow) app.quit(); }); + if (process.platform !== 'darwin') win.on('closed', () => !launchedMainWindow && app.quit()); wc.once('dom-ready', () => { if (oaConfig.themeSync !== false) wc.insertCSS(JSON.parse(fs.readFileSync(join(paths.getUserData(), 'userDataCache.json'), 'utf8')).openasarSplashCSS);