lightcord se met auto devant les apps 😔

This commit is contained in:
Jean Ouina 2020-06-29 21:19:22 +02:00
parent 995824fcd5
commit 077f12a96a
1 changed files with 0 additions and 4 deletions

View File

@ -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);
}
}