diff --git a/source/menu.ts b/source/menu.ts index ce13bfa36..afce0b75c 100644 --- a/source/menu.ts +++ b/source/menu.ts @@ -190,6 +190,18 @@ Press Command/Ctrl+R in Caprine to see your changes. focusedWindow.setAlwaysOnTop(item.checked); } }, + { + label: 'Launch at Login', + visible: is.macos || is.windows, + type: 'checkbox', + checked: app.getLoginItemSettings().openAtLogin, + click(menuItem) { + app.setLoginItemSettings({ + openAtLogin: menuItem.checked, + openAsHidden: menuItem.checked + }); + } + }, { label: 'Auto Hide Menu Bar', visible: !is.macos,