Added: autoStart

This commit is contained in:
Molunerfinn
2018-05-02 17:17:55 +08:00
parent 282b0dc25c
commit eaa348ad56
2 changed files with 8 additions and 1 deletions

View File

@@ -470,6 +470,10 @@ app.on('will-quit', () => {
globalShortcut.unregisterAll()
})
app.setLoginItemSettings({
openAtLogin: db.read().get('picBed.autoStart').value() || false
})
/**
* Auto Updater
*