Skip to content

Commit

Permalink
Fix a bug in activeDownloadCount which caused mods in installation step
Browse files Browse the repository at this point in the history
to not be counted
  • Loading branch information
VilppeRiskidev committed Feb 24, 2025
1 parent dfaca8c commit 38b4211
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/store/modules/DownloadModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export const DownloadModule = {
getters: <GetterTree<State, RootState>>{
activeDownloadCount(state) {
const active = state.allDownloads.filter(
dl => !dl.failed && dl.downloadProgress < 100 && dl.installProgress < 100
dl =>
!dl.failed &&
!(dl.downloadProgress >= 100 && dl.installProgress >= 100)
);
return active.length;
},
Expand Down

0 comments on commit 38b4211

Please sign in to comment.