Skip to content

Commit

Permalink
fix(Settings): Fix cache size calculation after clearing cache
Browse files Browse the repository at this point in the history
  • Loading branch information
adlk committed Oct 2, 2019
1 parent 8428b4e commit a31566d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stores/AppStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -327,6 +328,8 @@ export default class AppStore extends Store {
await clearAppCache._promise;
await sleep(ms('1s'));
this.getAppCacheSizeRequest.execute();
this.isClearingAllCache = false;
Expand Down

0 comments on commit a31566d

Please sign in to comment.