Skip to content
Permalink
Browse files

Hide the statusbar on window blur

  • Loading branch information...
pfrazee committed Apr 14, 2019
1 parent b7b5b50 commit 26b5ec0f17887e9a6ed6215a3061225e3b0d8b0f
Showing with 4 additions and 1 deletion.
  1. +4 −1 app/background-process/ui/windows.js
@@ -232,7 +232,10 @@ export function createShellWindow (windowState) {
win.on('scroll-touch-begin', sendScrollTouchBegin)
win.on('scroll-touch-end', sendToWebContents('scroll-touch-end'))
win.on('focus', sendToWebContents('focus'))
win.on('blur', sendToWebContents('blur'))
win.on('blur', e => {
statusBarSubwindow.set(win, false) // hide the statusbar on blur
sendToWebContents('blur')(e)
})
win.on('app-command', (e, cmd) => { onAppCommand(win, e, cmd) })
win.on('enter-full-screen', e => {
// update UI

0 comments on commit 26b5ec0

Please sign in to comment.
You can’t perform that action at this time.