diff --git a/main.js b/main.js index a563723..b34cf84 100644 --- a/main.js +++ b/main.js @@ -122,7 +122,18 @@ if (!setupEvents.handleSquirrelEvent()) { ); } - + if (!old_version) { + settings.set('settings', + Object.assign( + {}, + settings.set('settings'), + { + last_used_version: require('./package.json').version, + first_launch: true, + } + ) + ); + } // Keep a global reference of the window object, if you don't, the window will // be closed automatically when the JavaScript object is garbage collected. let mainWindow