fix: make global show/hide work for windows

This commit is contained in:
Johannes Millan 2019-09-26 23:05:39 +02:00
parent d65fbf643b
commit a6668e6367

View file

@ -265,6 +265,8 @@ function registerShowAppShortCuts(cfg: KeyboardConfig) {
case 'globalShowHide':
actionFn = () => {
if (mainWin.isFocused()) {
// we need to blur the window for windows
mainWin.blur();
mainWin.hide();
} else {
showOrFocus(mainWin);