mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
fix(WindowService): conditionally hide dock icon for macOS when closing to tray
This commit is contained in:
parent
387caad612
commit
a7f1387dec
@ -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