Smarted spawn hotkey behaviour on macOS to give the focus to the previous app on hide

This commit is contained in:
Eugene Pankov
2018-03-24 23:40:45 +01:00
parent 5e07dd5442
commit 3c3b14bf09
4 changed files with 8 additions and 12 deletions

View File

@@ -56,14 +56,6 @@ setupWindowManagement = () => {
app.window.focus()
})
electron.ipcMain.on('window-toggle-focus', () => {
if (app.window.isFocused()) {
app.window.minimize()
} else {
app.window.focus()
}
})
electron.ipcMain.on('window-maximize', () => {
app.window.maximize()
})