Skip to content

Commit

Permalink
Show icon in dock (macOS) during data export
Browse files Browse the repository at this point in the history
  • Loading branch information
SRichner committed Mar 6, 2024
1 parent 983087c commit cec89e6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/electron/electron/main/services/WindowService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,17 @@ export class WindowService {

Menu.setApplicationMenu(Menu.buildFromTemplate(template));

if (is.macOS) {
await app.dock.show();
}

this.dataExportWindow.show();

this.dataExportWindow.on('close', () => {
this.dataExportWindow = null;
if (is.macOS) {
app.dock.hide();
}
});
}

Expand Down

0 comments on commit cec89e6

Please sign in to comment.