fix(WindowService): conditionally hide dock icon for macOS when closing to tray
This commit is contained in:
parent
3823912b3e
commit
b361001f39
@ -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…
x
Reference in New Issue
Block a user