Skip to content

Commit 6d04ccf

Browse files
authored
Merge 2da47a9 into 57f468f
2 parents 57f468f + 2da47a9 commit 6d04ccf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

source/gui/addonStoreGui/controls/storeDialog.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
from gui.message import DisplayableError, displayDialogAsModal
3232
from gui.settingsDialogs import SettingsDialog
3333
from logHandler import log
34+
from utils.caseInsensitiveCollections import CaseInsensitiveSet
3435

3536
from ..viewModels.store import AddonStoreVM
3637
from .actions import _MonoActionsContextMenu
@@ -268,6 +269,10 @@ def _requiresRestart(self) -> bool:
268269
addonDataManager._downloadsPendingInstall
269270
or state[AddonStateCategory.PENDING_INSTALL]
270271
):
272+
# Create a copy and merge the sets to log the add-ons pending install
273+
addonsPendingInstall = CaseInsensitiveSet(state[AddonStateCategory.PENDING_INSTALL])
274+
addonsPendingInstall.union(a[0].model.name for a in addonDataManager._downloadsPendingInstall)
275+
log.debug(f"Add-ons pending install, restart required: {addonsPendingInstall}")
271276
return True
272277

273278
for addonsForChannel in self._storeVM._installedAddons.values():

0 commit comments

Comments
 (0)