fix(WindowService): handle fullscreen toggle before hiding window
This commit is contained in:
@@ -324,6 +324,11 @@ export class WindowService {
|
||||
|
||||
event.preventDefault()
|
||||
|
||||
if (mainWindow.isFullScreen()) {
|
||||
mainWindow.setFullScreen(false)
|
||||
return
|
||||
}
|
||||
|
||||
mainWindow.hide()
|
||||
|
||||
//for mac users, should hide dock icon if close to tray
|
||||
|
||||
Reference in New Issue
Block a user