fix: settings storage calc (#943)

Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com>
This commit is contained in:
lance chant
2025-08-18 14:53:58 +02:00
committed by GitHub
parent 9410239c48
commit 18b33884e6
3 changed files with 27 additions and 23 deletions

View File

@@ -687,7 +687,7 @@ function useDownloadProvider() {
appSize += fileInfo.size;
}
}
return { total, remaining, app: appSize };
return { total, remaining, appSize: appSize };
};
return {
@@ -731,7 +731,7 @@ export function useDownload() {
APP_CACHE_DOWNLOAD_DIRECTORY: "",
cleanCacheDirectory: async () => {},
updateDownloadedItem: () => {},
appSizeUsage: async () => ({ total: 0, remaining: 0, app: 0 }),
appSizeUsage: async () => ({ total: 0, remaining: 0, appSize: 0 }),
};
}