From 146c7ee52f5d76df3d825d079a3520f630e19655 Mon Sep 17 00:00:00 2001 From: VilppeRiskidev Date: Mon, 24 Feb 2025 18:46:37 +0200 Subject: [PATCH] Prevent doing mod list refresh while there are active mod downloads --- src/store/modules/TsModsModule.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/TsModsModule.ts b/src/store/modules/TsModsModule.ts index dbc44f276..e2658829b 100644 --- a/src/store/modules/TsModsModule.ts +++ b/src/store/modules/TsModsModule.ts @@ -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 { - if (state.isThunderstoreModListUpdateInProgress) { + async syncPackageList({commit, dispatch, state, rootGetters}): Promise { + if (state.isThunderstoreModListUpdateInProgress || rootGetters['download/activeDownloadCount'] > 0) { return; }