aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/SettingsStore.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-02-26 09:52:44 +0100
committerLibravatar vantezzen <hello@vantezzen.io>2020-02-26 09:52:44 +0100
commitc74a048178c3c57c7217236b279dcade4b2648c2 (patch)
tree77287690affacc6fc51e16d1bb56faff62a34e44 /src/stores/SettingsStore.js
parent#270 Add more navigation bar behaviour settings (diff)
downloadferdium-app-c74a048178c3c57c7217236b279dcade4b2648c2.tar.gz
ferdium-app-c74a048178c3c57c7217236b279dcade4b2648c2.tar.zst
ferdium-app-c74a048178c3c57c7217236b279dcade4b2648c2.zip
Add migration from old setting
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r--src/stores/SettingsStore.js20
1 files changed, 20 insertions, 0 deletions
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 {
250 }, 250 },
251 }); 251 });
252 } 252 }
253
254 if (!this.all.migration['5.4.4-beta.2-settings']) {
255 const {
256 showServiceNavigationBar,
257 } = this.all.app;
258
259 this.actions.settings.update({
260 type: 'app',
261 data: {
262 navigationBarBehaviour: showServiceNavigationBar ? 'custom' : 'never',
263 },
264 });
265
266 this.actions.settings.update({
267 type: 'migration',
268 data: {
269 '5.4.4-beta.2-settings': true,
270 },
271 });
272 }
253 } 273 }
254} 274}