Skip to content

Commit

Permalink
Add config option to hide on blur (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliiFe authored and ogustavo-pereira committed Feb 17, 2022
1 parent 8fd1231 commit 35ebfc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const defaultSettings = memoize(() => {
firstStart: true,
developerMode: false,
cleanOnHide: true,
hideOnBlur: true,
skipDonateDialog: false,
lastShownDonateDialog: null,
plugins: {},
Expand Down
2 changes: 1 addition & 1 deletion app/main/createWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 35ebfc8

Please sign in to comment.