fix(desktop): update from the splash only after the user clicks (#3280)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-08 17:25:34 +02:00
1 parent f1373a63c3
commit 7937d5f802
90 files changed
+6888 -11255

No files matched your search

+2 -1
View File
@@ -33,6 +33,7 @@ const TRAY_POSITION_GUID = TRAY_POSITION_GUIDS[BUILD_CHANNEL];
interface DesktopTrayController {
createWindow: () => BrowserWindow;
getMainWindow: () => BrowserWindow | null;
isMainWindowTakenOver: () => boolean;
hideWindow: () => void;
setQuitting: (quitting: boolean) => void;
showWindow: () => void;
@@ -236,7 +237,7 @@ function createTrayIcon(): Electron.NativeImage | null {
function ensureMainWindowVisible(): void {
if (!controller) return;
const mainWindow = controller.getMainWindow();
if (!mainWindow || mainWindow.isDestroyed()) {
if ((!mainWindow || mainWindow.isDestroyed()) && !controller.isMainWindowTakenOver()) {
controller.createWindow();
}
controller.showWindow();