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:
Jonas Hermsmeier 2018-05-09 17:04:38 +02:00
parent 262d06f035
commit 40df4a94a7
No known key found for this signature in database
GPG Key ID: 1B870F801A0CEE9F

View File

@ -44,7 +44,7 @@ electron.app.on('ready', () => {
maximizable: false,
fullscreen: Boolean(process.env.ETCHER_FULLSCREEN),
fullscreenable: Boolean(process.env.ETCHER_FULLSCREEN),
kiosk: true,
kiosk: Boolean(process.env.ETCHER_FULLSCREEN),
autoHideMenuBar: true,
titleBarStyle: 'hidden-inset',
icon: path.join(__dirname, '..', '..', 'assets', 'icon.png'),