fix(WindowService): handle fullscreen toggle before hiding window

This commit is contained in:
kangfenmao 2025-05-18 19:43:40 +08:00
parent 2202b82f33
commit 03fa6b5a74

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