lightcord se met auto devant les apps 😔
This commit is contained in:
parent
995824fcd5
commit
077f12a96a
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue