fix window flash when clicking notification

This commit is contained in:
V 2024-01-18 23:49:26 +01:00
parent 463cd6dc46
commit 4f1615ecb3
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

@ -69,10 +69,8 @@ handle(IpcEvents.SHOW_ITEM_IN_FOLDER, (_, path) => {
}); });
handle(IpcEvents.FOCUS, () => { handle(IpcEvents.FOCUS, () => {
if (process.platform === "win32") mainWin.minimize(); // Windows is weird
mainWin.restore();
mainWin.show(); mainWin.show();
mainWin.setSkipTaskbar(false);
}); });
handle(IpcEvents.CLOSE, (e, key?: string) => { handle(IpcEvents.CLOSE, (e, key?: string) => {