mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
fix(desktop): update from the splash only after the user clicks (#3280)
This commit is contained in:
1 parent
f1373a63c3
commit
7937d5f802
90 files changed
+6888
-11255
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user