fix(WindowService): handle fullscreen toggle before hiding window

This commit is contained in:
kangfenmao 2025-05-18 19:43:40 +08:00
parent d6b5c25d29
commit b17326d8f9

View File

@ -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