diff --git a/app/lib/config.js b/app/lib/config.js index df4420f6..0a3ff6ff 100644 --- a/app/lib/config.js +++ b/app/lib/config.js @@ -30,6 +30,7 @@ const defaultSettings = memoize(() => { firstStart: true, developerMode: false, cleanOnHide: true, + hideOnBlur: true, skipDonateDialog: false, lastShownDonateDialog: null, plugins: {}, diff --git a/app/main/createWindow.js b/app/main/createWindow.js index e9d6eae2..bd679a9c 100644 --- a/app/main/createWindow.js +++ b/app/main/createWindow.js @@ -57,7 +57,7 @@ export default ({ src, isDev }) => { globalShortcut.register(shortcut, toggleMainWindow) mainWindow.on('blur', () => { - if (!isDev()) { + if (!isDev() && config.get('hideOnBlur')) { // Hide window on blur in production // In development we usually use developer tools that can blur a window mainWindow.hide()