mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-23 14:48:13 -05:00
Fixed: auto start setting
This commit is contained in:
parent
9fdd54ca16
commit
4a685e0474
@ -423,6 +423,12 @@ ipcMain.on('updteDefaultPicBed', (evt) => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
ipcMain.on('autoStart', (evt, val) => {
|
||||||
|
app.setLoginItemSettings({
|
||||||
|
openAtLogin: val
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
const shortKeyHash = {
|
const shortKeyHash = {
|
||||||
upload: uploadClipboardFiles
|
upload: uploadClipboardFiles
|
||||||
}
|
}
|
||||||
|
@ -211,7 +211,11 @@ export default {
|
|||||||
},
|
},
|
||||||
handleAutoStartChange (val) {
|
handleAutoStartChange (val) {
|
||||||
this.$db.read().set('picBed.autoStart', val).write()
|
this.$db.read().set('picBed.autoStart', val).write()
|
||||||
|
this.$electron.ipcRenderer.send('autoStart', val)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
beforeDestroy () {
|
||||||
|
this.$electron.ipcRenderer.removeAllListeners('autoStart')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user