From c74a048178c3c57c7217236b279dcade4b2648c2 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Wed, 26 Feb 2020 09:52:44 +0100 Subject: Add migration from old setting --- src/stores/SettingsStore.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/stores') diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index da63bc972..45c2cbd50 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js @@ -250,5 +250,25 @@ export default class SettingsStore extends Store { }, }); } + + if (!this.all.migration['5.4.4-beta.2-settings']) { + const { + showServiceNavigationBar, + } = this.all.app; + + this.actions.settings.update({ + type: 'app', + data: { + navigationBarBehaviour: showServiceNavigationBar ? 'custom' : 'never', + }, + }); + + this.actions.settings.update({ + type: 'migration', + data: { + '5.4.4-beta.2-settings': true, + }, + }); + } } } -- cgit v1.2.3-70-g09d2