aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/SettingsStore.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-04-17 18:07:20 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2020-04-17 18:07:20 +0200
commitd3bea9800073f864cf407bf0c42ef7c299a91852 (patch)
treec0781876d677f51293333c18cbb637dafab203c2 /src/stores/SettingsStore.js
parentMerge branch 'develop' (diff)
parentPrepare code (diff)
downloadferdium-app-d3bea9800073f864cf407bf0c42ef7c299a91852.tar.gz
ferdium-app-d3bea9800073f864cf407bf0c42ef7c299a91852.tar.zst
ferdium-app-d3bea9800073f864cf407bf0c42ef7c299a91852.zip
Merge branch 'develop'v5.5.0-gm
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r--src/stores/SettingsStore.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js
index 71d4e1702..227eb2145 100644
--- a/src/stores/SettingsStore.js
+++ b/src/stores/SettingsStore.js
@@ -110,6 +110,7 @@ export default class SettingsStore extends Store {
110 } 110 }
111 debug('Get appSettings resolves', resp.type, resp.data); 111 debug('Get appSettings resolves', resp.type, resp.data);
112 Object.assign(this._fileSystemSettingsCache[resp.type], resp.data); 112 Object.assign(this._fileSystemSettingsCache[resp.type], resp.data);
113 ipcRenderer.send('initialAppSettings', resp);
113 }); 114 });
114 115
115 this.fileSystemSettingsTypes.forEach((type) => { 116 this.fileSystemSettingsTypes.forEach((type) => {
@@ -263,5 +264,42 @@ export default class SettingsStore extends Store {
263 }, 264 },
264 }); 265 });
265 } 266 }
267
268 if (!this.all.migration['5.4.4-beta.4-settings']) {
269 this.actions.settings.update({
270 type: 'app',
271 data: {
272 todoServer: 'isUsingCustomTodoService',
273 customTodoServer: legacySettings.todoServer,
274 },
275 });
276
277 this.actions.settings.update({
278 type: 'migration',
279 data: {
280 '5.4.4-beta.4-settings': true,
281 },
282 });
283
284 debug('Migrated old todo setting to new custom todo setting');
285 }
286
287 if (!this.all.migration['5.4.4-beta.4-settings']) {
288 this.actions.settings.update({
289 type: 'app',
290 data: {
291 automaticUpdates: !(legacySettings.noUpdates),
292 },
293 });
294
295 this.actions.settings.update({
296 type: 'migration',
297 data: {
298 '5.4.4-beta.4-settings': true,
299 },
300 });
301
302 debug('Migrated updates settings');
303 }
266 } 304 }
267} 305}