Skip to content

Commit

Permalink
fix(suite-desktop-core): app isHidden check is mac only
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan committed Jan 14, 2025
1 parent c0a9ecc commit 347a2ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/suite-desktop-core/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,11 @@ const init = async () => {

const mainWindow = mainWindowProxy.getInstance();
const windowExists =
mainWindow && !mainWindow.isDestroyed() && mainWindow.isClosable() && !app.isHidden();
const autoStartCurrentlyEnabled =
isAutoStartEnabled() || app.commandLine.hasSwitch('bridge-test');
mainWindow &&
!mainWindow.isDestroyed() &&
mainWindow.isClosable() &&
(!isMacOs() || !app.isHidden());
const autoStartCurrentlyEnabled = isAutoStartEnabled();
logger.info('main', `Before quit, window exists: ${windowExists}`);
if (
!stoppingDaemon &&
Expand Down

0 comments on commit 347a2ad

Please sign in to comment.