mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-24 11:46:31 +00:00
fix(gui): Disable throttling timers when in background
This disables Electron throttling timers when not in the foreground. Change-Type: patch
This commit is contained in:
parent
1536e62734
commit
d91d957777
@ -46,7 +46,10 @@ electron.app.on('ready', () => {
|
|||||||
fullscreenable: false,
|
fullscreenable: false,
|
||||||
autoHideMenuBar: true,
|
autoHideMenuBar: true,
|
||||||
titleBarStyle: 'hidden-inset',
|
titleBarStyle: 'hidden-inset',
|
||||||
icon: path.join(__dirname, '..', '..', 'assets', 'icon.png')
|
icon: path.join(__dirname, '..', '..', 'assets', 'icon.png'),
|
||||||
|
webPreferences: {
|
||||||
|
backgroundThrottling: false
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
buildWindowMenu(mainWindow)
|
buildWindowMenu(mainWindow)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user