Skip to content

Commit

Permalink
Fix a bug that prevents the tray icon from showing (#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
JBudny authored and sindresorhus committed Dec 23, 2019
1 parent 6134294 commit 602c8d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ function createMainWindow(): BrowserWindow {

if (config.get('launchMinimized') || app.getLoginItemSettings().wasOpenedAsHidden) {
mainWindow.hide();
tray.create(mainWindow);
} else {
mainWindow.show();
}
Expand Down

0 comments on commit 602c8d1

Please sign in to comment.