mirror of
https://github.com/Lightcord/Lightcord.git
synced 2025-04-12 00:55:40 +02:00
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 (isVisible) {
|
||||||
if (andUnminimize || !mainWindow.isMinimized()) {
|
if (andUnminimize || !mainWindow.isMinimized()) {
|
||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
mainWindow.setAlwaysOnTop(true);
|
|
||||||
mainWindow.focus();
|
mainWindow.focus();
|
||||||
mainWindow.setAlwaysOnTop(false);
|
|
||||||
webContentsSend('MAIN_WINDOW_FOCUS');
|
webContentsSend('MAIN_WINDOW_FOCUS');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -708,9 +706,7 @@ function handleSingleInstance(args) {
|
|||||||
webContentsSend('MAIN_WINDOW_PATH', appPath);
|
webContentsSend('MAIN_WINDOW_PATH', appPath);
|
||||||
}
|
}
|
||||||
setWindowVisible(true, false);
|
setWindowVisible(true, false);
|
||||||
mainWindow.setAlwaysOnTop(true);
|
|
||||||
mainWindow.focus();
|
mainWindow.focus();
|
||||||
mainWindow.setAlwaysOnTop(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user