mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 13:31:32 +08:00
fix(WindowService): comment out dock icon hiding for macOS when closing to tray due to cmd+h behavior issue (#8658)
This commit is contained in:
parent
43dc1e06e4
commit
63ae211af1
@ -356,10 +356,13 @@ export class WindowService {
|
||||
|
||||
mainWindow.hide()
|
||||
|
||||
//for mac users, should hide dock icon if close to tray
|
||||
if (isMac && isTrayOnClose) {
|
||||
app.dock?.hide()
|
||||
}
|
||||
// TODO: don't hide dock icon when close to tray
|
||||
// will cause the cmd+h behavior not working
|
||||
// after the electron fix the bug, we can restore this code
|
||||
// //for mac users, should hide dock icon if close to tray
|
||||
// if (isMac && isTrayOnClose) {
|
||||
// app.dock?.hide()
|
||||
// }
|
||||
})
|
||||
|
||||
mainWindow.on('closed', () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user