fix minimize after 2 clicks in the void, Recordly should always be on top

This commit is contained in:
Alan Trebugeais
2026-05-07 13:35:02 +02:00
parent 6fc5b33dce
commit 02889c73f6
+5 -1
View File
@@ -305,8 +305,12 @@ ipcMain.on("hud-overlay-drag", (_event, phase: string, screenX: number, screenY:
});
ipcMain.on("hud-overlay-hide", () => {
// Keep the HUD persistent: accidental hide events should not minimize it.
if (hudOverlayWindow && !hudOverlayWindow.isDestroyed()) {
hudOverlayWindow.minimize();
if (!hudOverlayWindow.isVisible()) {
hudOverlayWindow.show();
}
hudOverlayWindow.moveTop();
}
});