Skip to content

Commit d34b0d5

Browse files
committed
feat: prevent initial window state drift
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent bd8349b commit d34b0d5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/main/config.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,19 @@ export const WindowConfig: BrowserWindowConstructorOptions = {
4545
minWidth: 500,
4646
minHeight: 400,
4747
resizable: false,
48-
skipTaskbar: true, // Hide the app from the Windows taskbar
48+
/** Hide the app from the Windows taskbar */
49+
skipTaskbar: true,
4950
webPreferences: {
5051
preload: Paths.preload,
5152
contextIsolation: true,
5253
nodeIntegration: false,
53-
// Disable web security in development to allow CORS requests
54+
/** Disable web security in development to allow CORS requests */
5455
webSecurity: !process.env.VITE_DEV_SERVER_URL,
55-
// Keep the renderer painting when the window is hidden so Chromium never
56-
// freezes the last frame. Without this, reopening the menubar window shows
57-
// stale notification content until the next React re-render completes.
56+
/**
57+
* Keep the renderer process active even when the window is hidden. This prevents
58+
* Chromium from throttling or freezing the renderer process, ensuring that the menubar
59+
* window remains responsive and up-to-date with the latest notification content on show.
60+
*/
5861
backgroundThrottling: false,
5962
},
6063
};

0 commit comments

Comments
 (0)