[api] improvement: SoftwarePackage.get_supported_actions can now return any iterable

This commit is contained in:
Vinicius Moreira
2021-12-17 14:55:53 -03:00
parent 33292bab61
commit 3296fd34da
7 changed files with 17 additions and 17 deletions

View File

@@ -43,7 +43,7 @@ class SnapManager(SoftwareManager):
self.suggestions_cache = context.cache_factory.new()
self.info_path = None
self.configman = SnapConfigManager()
self.custom_actions = [
self.custom_actions = (
CustomSoftwareAction(i18n_status_key='snap.action.refresh.status',
i18n_label_key='snap.action.refresh.label',
icon_path=resource.get_path('img/refresh.svg', ROOT_DIR),
@@ -57,7 +57,7 @@ class SnapManager(SoftwareManager):
manager_method='change_channel',
requires_root=True,
requires_confirmation=False)
]
)
def _fill_categories(self, app: SnapApplication):
categories = self.categories.get(app.name.lower())