Skip to content

Commit a31566d

Browse files
committed
fix(Settings): Fix cache size calculation after clearing cache
1 parent 8428b4e commit a31566d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/stores/AppStore.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { getLocale } from '../helpers/i18n-helpers';
2323

2424
import { getServiceIdsFromPartitions, removeServicePartitionDirectory } from '../helpers/service-helpers.js';
2525
import { isValidExternalURL } from '../helpers/url-helpers';
26+
import { sleep } from '../helpers/async-helpers';
2627

2728
const debug = require('debug')('Franz:AppStore');
2829

@@ -327,6 +328,8 @@ export default class AppStore extends Store {
327328

328329
await clearAppCache._promise;
329330

331+
await sleep(ms('1s'));
332+
330333
this.getAppCacheSizeRequest.execute();
331334

332335
this.isClearingAllCache = false;

0 commit comments

Comments
 (0)