diff options
author | Amine Mouafik <amine@mouafik.fr> | 2019-10-04 15:27:40 +0700 |
---|---|---|
committer | Amine Mouafik <amine@mouafik.fr> | 2019-10-04 15:27:40 +0700 |
commit | d8d5df6e72163b00e035f729b1013a957fed2321 (patch) | |
tree | ee0993c8b3d1ddb551aafa71b1e6bf932500ef3d /src/stores/AppStore.js | |
parent | Better handling for user data path (#100) (diff) | |
parent | Fix lint (diff) | |
download | ferdium-app-d8d5df6e72163b00e035f729b1013a957fed2321.tar.gz ferdium-app-d8d5df6e72163b00e035f729b1013a957fed2321.tar.zst ferdium-app-d8d5df6e72163b00e035f729b1013a957fed2321.zip |
Merge branch 'develop' of github.com:getferdi/ferdi into develop
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r-- | src/stores/AppStore.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 5bae6e8d4..40d98cf42 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -22,6 +22,7 @@ import { getLocale } from '../helpers/i18n-helpers'; | |||
22 | 22 | ||
23 | import { getServiceIdsFromPartitions, removeServicePartitionDirectory } from '../helpers/service-helpers.js'; | 23 | import { getServiceIdsFromPartitions, removeServicePartitionDirectory } from '../helpers/service-helpers.js'; |
24 | import { isValidExternalURL } from '../helpers/url-helpers'; | 24 | import { isValidExternalURL } from '../helpers/url-helpers'; |
25 | import { sleep } from '../helpers/async-helpers'; | ||
25 | 26 | ||
26 | const debug = require('debug')('Ferdi:AppStore'); | 27 | const debug = require('debug')('Ferdi:AppStore'); |
27 | 28 | ||
@@ -317,6 +318,8 @@ export default class AppStore extends Store { | |||
317 | 318 | ||
318 | await clearAppCache._promise; | 319 | await clearAppCache._promise; |
319 | 320 | ||
321 | await sleep(ms('1s')); | ||
322 | |||
320 | this.getAppCacheSizeRequest.execute(); | 323 | this.getAppCacheSizeRequest.execute(); |
321 | 324 | ||
322 | this.isClearingAllCache = false; | 325 | this.isClearingAllCache = false; |