Skip to content
Permalink
Browse files

fix(Settings): Fix cache size calculation after clearing cache

  • Loading branch information...
adlk committed Oct 2, 2019
1 parent 8428b4e commit a31566db76a20e1cb91de0aa26cace70b450acfa
Showing with 3 additions and 0 deletions.
  1. +3 −0 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;

0 comments on commit a31566d

Please sign in to comment.
You can’t perform that action at this time.