Skip to content

Commit

Permalink
Show window on dock icon for mac?
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvNC committed Jul 12, 2023
1 parent 593e9ef commit df27670
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,12 @@ app.on('window-all-closed', () => {
});

app.on('activate', () => {
// On OS X it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (BrowserWindow.getAllWindows().length === 0) {
createWindow();
}
// // On OS X it's common to re-create a window in the app when the
// // dock icon is clicked and there are no other windows open.
// if (BrowserWindow.getAllWindows().length === 0) {
// createWindow();
// }
window.show();
});

// In this file you can include the rest of your app's specific main process
Expand Down

0 comments on commit df27670

Please sign in to comment.