diff --git a/package.json b/package.json index fee7d99..a5591ed 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-bookmark", "productName": "VSCode Bookmark", "description": "A utility to save your favorite projects and open them easily in vscode.", - "version": "1.0.2", + "version": "1.0.3", "author": "Ailton Loures", "homepage": "https://github.com/ailtonloures/vscode-bookmark#readme", "repository": { diff --git a/src/main.js b/src/main.js index 8473b48..b218942 100644 --- a/src/main.js +++ b/src/main.js @@ -10,8 +10,11 @@ Sentry.init({ if (squirrelStartup || !app.requestSingleInstanceLock()) app.quit(); -app.setLoginItemSettings({ - openAtLogin: true, -}); +const { openAtLogin } = app.getLoginItemSettings(); + +if (openAtLogin === false) + app.setLoginItemSettings({ + openAtLogin: true, + }); app.whenReady().then(() => renderTray());