Skip to content

Commit

Permalink
Prevent doing mod list refresh while there are active mod downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
VilppeRiskidev committed Feb 24, 2025
1 parent b91770a commit 146c7ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/modules/TsModsModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ export const TsModsModule = {
* Full update process of the mod list, to be used after
* passing the splash screen.
*/
async syncPackageList({commit, dispatch, state}): Promise<void> {
if (state.isThunderstoreModListUpdateInProgress) {
async syncPackageList({commit, dispatch, state, rootGetters}): Promise<void> {
if (state.isThunderstoreModListUpdateInProgress || rootGetters['download/activeDownloadCount'] > 0) {
return;
}

Expand Down

0 comments on commit 146c7ee

Please sign in to comment.