From 9a89ef51cded72d5e6d378211e8a74964cfc8cc2 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Thu, 15 Feb 2018 17:38:13 +0100 Subject: Replace localAPI requests with mobx-localstorage --- src/stores/AppStore.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/stores/AppStore.js') diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 06c43f83f..77027f88d 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js @@ -331,10 +331,7 @@ export default class AppStore extends Store { } // Helpers - async _appStartsCounter() { - // we need to wait until the settings request is resolved - await this.stores.settings.allSettingsRequest; - + _appStartsCounter() { this.actions.settings.update({ settings: { appStarts: (this.stores.settings.all.appStarts || 0) + 1, @@ -345,10 +342,10 @@ export default class AppStore extends Store { async _autoStart() { this.autoLaunchOnStart = await this._checkAutoStart(); - // we need to wait until the settings request is resolved - await this.stores.settings.allSettingsRequest; + console.log('### settings appstarts', this.stores.settings.all.appStarts); if (!this.stores.settings.all.appStarts) { + console.log('launch Franz on start'); this.actions.app.launchOnStartup({ enable: true, }); -- cgit v1.2.3-54-g00ecf