fix: Keep settings on upgrade.

This commit is contained in:
Quentin Decaunes 2019-08-18 12:23:39 +02:00
parent 3c04551722
commit b967b36a62

View File

@ -118,7 +118,7 @@ if (!setupEvents.handleSquirrelEvent()) {
settings.set('settings',
Object.assign(
{},
settings.set('settings'),
settings.get('settings'),
{
last_used_version: require('./package.json').version,
first_launch: true,
@ -131,7 +131,7 @@ if (!setupEvents.handleSquirrelEvent()) {
settings.set('settings',
Object.assign(
{},
settings.set('settings'),
settings.get('settings'),
{
last_used_version: require('./package.json').version,
first_launch: true,