Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): keep preview automation alive on macOS close #6317

Closedproxynico(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/6317/headopened View on GitHub

Showing 2 changed files with 88 additions and 5 deletions.

x
0 of 2 viewed, 2 left
79 additions and 4 deletionsapps/desktop/src/window/DesktopWindow.test.tsModified
View file
@@ -81,6 +81,7 @@
focus: vi.fn(),
getBounds: vi.fn(() => ({ x: 0, y: 0, width: 1100, height: 780 })),
getNormalBounds: vi.fn(() => ({ x: 0, y: 0, width: 1100, height: 780 })),
+ hide: vi.fn(),
isDestroyed: vi.fn(() => false),
isFullScreen: vi.fn(() => false),
isMaximized: vi.fn(() => false),
@@ -107,6 +108,7 @@
window: window as unknown as Electron.BrowserWindow,
getBounds: window.getBounds,
getNormalBounds: window.getNormalBounds,
+ hide: window.hide,
isDestroyed: window.isDestroyed,
isFullScreen: window.isFullScreen,
isMaximized: window.isMaximized,
@@ -186,6 +188,7 @@
bounds: DesktopAppSettings.DesktopWindowBounds,
) => Effect.Effect<void>;
readonly openedExternalUrls?: unknown[];
+ readonly quitting?: boolean;
}) {
let desktopSettings = input.desktopSettings ?? DesktopAppSettings.DEFAULT_DESKTOP_SETTINGS;
const desktopAppSettingsLayer = Layer.succeed(DesktopAppSettings.DesktopAppSettings, {
@@ -247,7 +250,13 @@
desktopEnvironmentLayer,
desktopAppSettingsLayer,