Skip to content

Commit

Permalink
Move updateMenu call to launch at login click handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Andrei committed Feb 12, 2019
1 parent 0f73c7d commit 093cbc7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ function setLoginSettings(): void {
openAsHidden,
path: updateExe
});

updateMenu();
}

export default function updateMenu(): Menu {
Expand Down Expand Up @@ -213,6 +211,7 @@ Press Command/Ctrl+R in Caprine to see your changes.
click(item) {
config.set('launchAtLogin', item.checked);
setLoginSettings();
updateMenu();
}
},
{
Expand Down

0 comments on commit 093cbc7

Please sign in to comment.