disable background throttling; hopefully fix unloads when in background

This commit is contained in:
Vendicated
2024-05-28 18:11:55 +02:00
parent 6b948668b9
commit b6c3c8024b
2 changed files with 10 additions and 7 deletions

View File

@@ -403,7 +403,9 @@ function createMainWindow() {
contextIsolation: true,
devTools: true,
preload: join(__dirname, "preload.js"),
spellcheck: true
spellcheck: true,
// disable renderer backgrounding to prevent the app from unloading when in the background
backgroundThrottling: false
},
icon: ICON_PATH,
frame: !noFrame,