fix(WindowService): conditionally hide dock icon for macOS when closing to tray

This commit is contained in:
kangfenmao 2025-04-06 21:32:56 +08:00
parent 3823912b3e
commit b361001f39

View File

@ -320,7 +320,9 @@ export class WindowService {
mainWindow.hide()
//for mac users, should hide dock icon if close to tray
if (isMac && isTrayOnClose) {
app.dock?.hide()
}
})
mainWindow.on('closed', () => {