From 2436a282f7e9e2a6c5be2cf3df1401403c91e07e Mon Sep 17 00:00:00 2001 From: Sean Budd Date: Fri, 31 May 2024 15:56:14 +1000 Subject: [PATCH 1/2] show all channels for updatable add-ons if a beta/dev add-on has been installed --- source/gui/addonStoreGui/controls/storeDialog.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/gui/addonStoreGui/controls/storeDialog.py b/source/gui/addonStoreGui/controls/storeDialog.py index b4c2fedc8fa..7b29945a592 100644 --- a/source/gui/addonStoreGui/controls/storeDialog.py +++ b/source/gui/addonStoreGui/controls/storeDialog.py @@ -319,7 +319,13 @@ def _toggleFilterControls(self): _StatusFilterKey.AVAILABLE, _StatusFilterKey.UPDATE, }: - self._storeVM._filterChannelKey = Channel.STABLE + if self._storeVM._filteredStatusKey ==_StatusFilterKey.UPDATE and ( + self._storeVM._installedAddons[Channel.DEV] + or self._storeVM._installedAddons[Channel.BETA] + ): + self._storeVM._filterChannelKey = Channel.ALL + else: + self._storeVM._filterChannelKey = Channel.STABLE self.enabledFilterCtrl.Hide() self.enabledFilterCtrl.Disable() self.includeIncompatibleCtrl.Enable() From 7aedae47f424bffdf375d0a0431e8ee32d5f2bee Mon Sep 17 00:00:00 2001 From: Sean Budd Date: Fri, 31 May 2024 16:18:14 +1000 Subject: [PATCH 2/2] fix lint --- source/gui/addonStoreGui/controls/storeDialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gui/addonStoreGui/controls/storeDialog.py b/source/gui/addonStoreGui/controls/storeDialog.py index 7b29945a592..cb60c2b622a 100644 --- a/source/gui/addonStoreGui/controls/storeDialog.py +++ b/source/gui/addonStoreGui/controls/storeDialog.py @@ -319,7 +319,7 @@ def _toggleFilterControls(self): _StatusFilterKey.AVAILABLE, _StatusFilterKey.UPDATE, }: - if self._storeVM._filteredStatusKey ==_StatusFilterKey.UPDATE and ( + if self._storeVM._filteredStatusKey == _StatusFilterKey.UPDATE and ( self._storeVM._installedAddons[Channel.DEV] or self._storeVM._installedAddons[Channel.BETA] ):