From 077f12a96a8b22cb62a22ac8da36ab98c509be72 Mon Sep 17 00:00:00 2001 From: Jean Ouina Date: Mon, 29 Jun 2020 21:19:22 +0200 Subject: [PATCH] lightcord se met auto devant les apps :pensive: --- modules/discord_desktop_core/core/app/mainScreen.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/discord_desktop_core/core/app/mainScreen.js b/modules/discord_desktop_core/core/app/mainScreen.js index c364454..aa04c89 100644 --- a/modules/discord_desktop_core/core/app/mainScreen.js +++ b/modules/discord_desktop_core/core/app/mainScreen.js @@ -169,9 +169,7 @@ function setWindowVisible(isVisible, andUnminimize) { if (isVisible) { if (andUnminimize || !mainWindow.isMinimized()) { mainWindow.show(); - mainWindow.setAlwaysOnTop(true); mainWindow.focus(); - mainWindow.setAlwaysOnTop(false); webContentsSend('MAIN_WINDOW_FOCUS'); } } else { @@ -708,9 +706,7 @@ function handleSingleInstance(args) { webContentsSend('MAIN_WINDOW_PATH', appPath); } setWindowVisible(true, false); - mainWindow.setAlwaysOnTop(true); mainWindow.focus(); - mainWindow.setAlwaysOnTop(false); } }