update store key name

This commit is contained in:
Eva Ho 2023-07-13 16:27:47 -04:00
parent ca6a5a5b4a
commit fdfab1ee7d
1 changed files with 2 additions and 2 deletions

View File

@ -156,11 +156,11 @@ app.on('ready', () => {
createSystemtray()
server()
if (!store.has('first-time-run-0')) {
if (!store.has('first-time-run')) {
// This is the first run
app.setLoginItemSettings({ openAtLogin: true })
firstRunWindow()
store.set('first-time-run-0', false)
store.set('first-time-run', false)
} else {
// The app has been run before
app.setLoginItemSettings({ openAtLogin: app.getLoginItemSettings().openAtLogin })