mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
fix: correctly focus window from notification (#1665)
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
This commit is contained in:
parent
dc599018cd
commit
c89872f2dc
@ -98,9 +98,8 @@ ipcMain.on("ipcCall", async function (_ev: IpcMainEvent, payload) {
|
|||||||
case "focusWindow":
|
case "focusWindow":
|
||||||
if (global.mainWindow.isMinimized()) {
|
if (global.mainWindow.isMinimized()) {
|
||||||
global.mainWindow.restore();
|
global.mainWindow.restore();
|
||||||
} else if (!global.mainWindow.isVisible()) {
|
|
||||||
global.mainWindow.show();
|
|
||||||
} else {
|
} else {
|
||||||
|
global.mainWindow.show();
|
||||||
global.mainWindow.focus();
|
global.mainWindow.focus();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user