From b967b36a62022dd9d7f6cf5247e56677d5587612 Mon Sep 17 00:00:00 2001 From: Quentin Decaunes Date: Sun, 18 Aug 2019 12:23:39 +0200 Subject: [PATCH] fix: Keep settings on upgrade. --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index e34ccd6..755dfaf 100644 --- a/main.js +++ b/main.js @@ -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,