Skip to content

Commit

Permalink
Don't add to login items when in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
SRichner committed Apr 5, 2024
1 parent 077ddf8 commit d480e1e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/electron/electron/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ const LOG = getMainLogger('Main');
app.whenReady().then(async () => {
app.setAppUserModelId('ch.ifi.hasel.personal-analytics');

app.setLoginItemSettings({
openAtLogin: true
});
if (!is.dev) {
app.setLoginItemSettings({
openAtLogin: true
});
}

try {
await databaseService.init();
Expand Down

0 comments on commit d480e1e

Please sign in to comment.