From a31566db76a20e1cb91de0aa26cace70b450acfa Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Wed, 2 Oct 2019 09:55:12 +0200 Subject: fix(Settings): Fix cache size calculation after clearing cache --- src/stores/AppStore.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/stores/AppStore.js') diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 315235ba4..0398b7533 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js @@ -23,6 +23,7 @@ import { getLocale } from '../helpers/i18n-helpers'; import { getServiceIdsFromPartitions, removeServicePartitionDirectory } from '../helpers/service-helpers.js'; import { isValidExternalURL } from '../helpers/url-helpers'; +import { sleep } from '../helpers/async-helpers'; const debug = require('debug')('Franz:AppStore'); @@ -327,6 +328,8 @@ export default class AppStore extends Store { await clearAppCache._promise; + await sleep(ms('1s')); + this.getAppCacheSizeRequest.execute(); this.isClearingAllCache = false; -- cgit v1.2.3-70-g09d2