mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 18:56: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,
|
||||
autoHideMenuBar: true,
|
||||
titleBarStyle: 'hidden-inset',
|
||||
icon: path.join(__dirname, '..', '..', 'assets', 'icon.png')
|
||||
icon: path.join(__dirname, '..', '..', 'assets', 'icon.png'),
|
||||
webPreferences: {
|
||||
backgroundThrottling: false
|
||||
}
|
||||
})
|
||||
|
||||
buildWindowMenu(mainWindow)
|
||||
|
Loading…
x
Reference in New Issue
Block a user