mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-27 21:26:38 +00:00
minifix(gui): Only enable Kiosk Mode when FULLSCREEN is set
This fixes the `kiosk` setting always being true, and causing the operating system's desktop to disappear. Change-Type: patch
This commit is contained in:
parent
262d06f035
commit
40df4a94a7
@ -44,7 +44,7 @@ electron.app.on('ready', () => {
|
|||||||
maximizable: false,
|
maximizable: false,
|
||||||
fullscreen: Boolean(process.env.ETCHER_FULLSCREEN),
|
fullscreen: Boolean(process.env.ETCHER_FULLSCREEN),
|
||||||
fullscreenable: Boolean(process.env.ETCHER_FULLSCREEN),
|
fullscreenable: Boolean(process.env.ETCHER_FULLSCREEN),
|
||||||
kiosk: true,
|
kiosk: Boolean(process.env.ETCHER_FULLSCREEN),
|
||||||
autoHideMenuBar: true,
|
autoHideMenuBar: true,
|
||||||
titleBarStyle: 'hidden-inset',
|
titleBarStyle: 'hidden-inset',
|
||||||
icon: path.join(__dirname, '..', '..', 'assets', 'icon.png'),
|
icon: path.join(__dirname, '..', '..', 'assets', 'icon.png'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user