From 10507b735afdba6dc30c432b3e47d1f2f80d26f8 Mon Sep 17 00:00:00 2001 From: tobspr Date: Sun, 13 Sep 2020 09:22:17 +0200 Subject: [PATCH] Update settings version and changelog --- src/js/changelog.js | 3 ++- src/js/profile/application_settings.js | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/js/changelog.js b/src/js/changelog.js index ddd6b289..ad3ed34c 100644 --- a/src/js/changelog.js +++ b/src/js/changelog.js @@ -28,7 +28,8 @@ export const CHANGELOG = [ "Allow editing waypoints (by isaisstillalive)", "Show confirmation when cutting area which is too expensive to get pasted again (by isaisstillalive)", "Show mouse and camera tile on debug overlay (F4) (by dengr)", - "Fix tunnels entrances connecting to exits sometimes when they shouldn't", + "Fixed tunnels entrances connecting to exits sometimes when they shouldn't", + "Added setting to auto select the extractor when pipetting a resource patch (by Exund)", "The initial belt planner direction is now based on the cursor movement (by MizardX)", "Fix preferred variant not getting saved when clicking on the hud (by Danacus)", ], diff --git a/src/js/profile/application_settings.js b/src/js/profile/application_settings.js index 07468788..084a6fe7 100644 --- a/src/js/profile/application_settings.js +++ b/src/js/profile/application_settings.js @@ -523,7 +523,7 @@ export class ApplicationSettings extends ReadWriteProxy { } getCurrentVersion() { - return 25; + return 26; } /** @param {{settings: SettingsStorage, version: number}} data */ @@ -630,11 +630,6 @@ export class ApplicationSettings extends ReadWriteProxy { data.settings.refreshRate = "60"; } - if (data.version < 25) { - data.settings.pickMinerOnPatch = true; - data.version = 25; - } - if (data.version < 25) { data.settings.musicVolume = 0.5; data.settings.soundVolume = 0.5; @@ -646,6 +641,11 @@ export class ApplicationSettings extends ReadWriteProxy { data.version = 25; } + if (data.version < 26) { + data.settings.pickMinerOnPatch = true; + data.version = 26; + } + return ExplainedResult.good(); } }