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:
beyondkmp 2025-08-01 20:54:56 +08:00 committed by GitHub
parent 43dc1e06e4
commit 63ae211af1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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', () => {