File tree Expand file tree Collapse file tree
source/gui/addonStoreGui/controls Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131from gui .message import DisplayableError , displayDialogAsModal
3232from gui .settingsDialogs import SettingsDialog
3333from logHandler import log
34+ from utils .caseInsensitiveCollections import CaseInsensitiveSet
3435
3536from ..viewModels .store import AddonStoreVM
3637from .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 ():
You can’t perform that action at this time.
0 commit comments