aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/SettingsStore.js
diff options
context:
space:
mode:
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}