mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
fix(WindowService): conditionally hide dock icon for macOS when closing to tray
This commit is contained in:
parent
c8b02f31db
commit
0ab0df452c
@ -320,7 +320,9 @@ export class WindowService {
|
||||
mainWindow.hide()
|
||||
|
||||
//for mac users, should hide dock icon if close to tray
|
||||
app.dock?.hide()
|
||||
if (isMac && isTrayOnClose) {
|
||||
app.dock?.hide()
|
||||
}
|
||||
})
|
||||
|
||||
mainWindow.on('closed', () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user