From 093cbc7ac01ff84f425a96ad54a0681d652854b1 Mon Sep 17 00:00:00 2001 From: Daniel Andrei Date: Tue, 12 Feb 2019 21:54:11 +0200 Subject: [PATCH] Move `updateMenu` call to `launch at login` click handler --- source/menu.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/menu.ts b/source/menu.ts index cda5768d6..8188447ee 100644 --- a/source/menu.ts +++ b/source/menu.ts @@ -25,8 +25,6 @@ function setLoginSettings(): void { openAsHidden, path: updateExe }); - - updateMenu(); } export default function updateMenu(): Menu { @@ -213,6 +211,7 @@ Press Command/Ctrl+R in Caprine to see your changes. click(item) { config.set('launchAtLogin', item.checked); setLoginSettings(); + updateMenu(); } }, {