addon store. Fixed the bug where actions button wasn't available for multiple selected addons (#20322)
fixes #19971
Summary of the issue:
When multiple addons are selected in the addons list in the addon store dialog, The application key and right click was available to open the context menu for the bulk actions for the selected addons, but the actions button, which should've been a direct remote button for triggering the same context menu was not available, and it was just explisitly opening the context menu for a single selected addon
Description of user facing changes:
In the addon store, now when multiple addons are selected, the actions button which was not available before is now available. Only when no addon is selected this option will not be available. Otherwise, for multiple addons selected or single addon selected, actions button is available and triggers the related context menu accordingly
Description of developer facing changes:
in the refresh method, instead of just globelly doing
self.contentsPanel.Show()
self.contentsPanel.Hide()
on statements if numSelectedAddons > 1: elif not details: else:, explisitly set each controle's visibility. Only hide the entire contents pannel in statement where no controle inside the pannel must be visible. If any of them should be visible, show the panel, and hide or show the related controle only explisitly on it
Description of development approach:
before this, the actions button was explisitly opening the context menu for the single selected addon, but,
on actions.binde, I treeted it as it's the right click or application on the list. The actions button is now directly a remote for the context menu of the addons list, which is expected and how as it should be.