Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config option to hide on blur #454

Merged
merged 1 commit into from
Mar 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/lib/config.js
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@ const defaultSettings = memoize(() => {
firstStart: true,
developerMode: false,
cleanOnHide: true,
hideOnBlur: true,
skipDonateDialog: false,
lastShownDonateDialog: null,
plugins: {},
2 changes: 1 addition & 1 deletion app/main/createWindow.js
Original file line number Diff line number Diff line change
@@ -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()