mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-29 14:31:35 +08:00
fix(WindowService): handle fullscreen toggle before hiding window
This commit is contained in:
parent
2202b82f33
commit
03fa6b5a74
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user