aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r--src/stores/AppStore.js14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index a51a3267f..162422017 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -334,10 +334,7 @@ export default class AppStore extends Store {
334 } 334 }
335 335
336 // Helpers 336 // Helpers
337 async _appStartsCounter() { 337 _appStartsCounter() {
338 // we need to wait until the settings request is resolved
339 await this.stores.settings.allSettingsRequest;
340
341 this.actions.settings.update({ 338 this.actions.settings.update({
342 settings: { 339 settings: {
343 appStarts: (this.stores.settings.all.appStarts || 0) + 1, 340 appStarts: (this.stores.settings.all.appStarts || 0) + 1,
@@ -348,10 +345,7 @@ export default class AppStore extends Store {
348 async _autoStart() { 345 async _autoStart() {
349 this.autoLaunchOnStart = await this._checkAutoStart(); 346 this.autoLaunchOnStart = await this._checkAutoStart();
350 347
351 // we need to wait until the settings request is resolved 348 if (this.stores.settings.all.appStarts === 1) {
352 await this.stores.settings.allSettingsRequest;
353
354 if (!this.stores.settings.all.appStarts) {
355 this.actions.app.launchOnStartup({ 349 this.actions.app.launchOnStartup({
356 enable: true, 350 enable: true,
357 }); 351 });
@@ -367,8 +361,8 @@ export default class AppStore extends Store {
367 console.debug('reactivateServices: computer is offline, trying again in 5s, retries:', retryCount); 361 console.debug('reactivateServices: computer is offline, trying again in 5s, retries:', retryCount);
368 setTimeout(() => this._reactivateServices(retryCount + 1), 5000); 362 setTimeout(() => this._reactivateServices(retryCount + 1), 5000);
369 } else { 363 } else {
370 console.debug('reactivateServices: reload all services'); 364 console.debug('reactivateServices: reload Franz');
371 this.actions.service.reloadAll(); 365 window.location.reload();
372 } 366 }
373 } 367 }
374 368