[fix][ui][settings] not displaying all available gems

This commit is contained in:
Vinícius Moreira
2020-01-28 15:06:59 -03:00
parent b6ba643d9e
commit e859cfd06d
13 changed files with 20 additions and 9 deletions

View File

@@ -615,7 +615,7 @@ class GenericSoftwareManager(SoftwareManager):
gem_opts, def_gem_opts, gem_tabs = [], set(), []
for man in self.managers:
if self._can_work(man):
if man.can_work():
man_comp = man.get_settings()
modname = man.__module__.split('.')[-2]
icon_path = "{r}/gems/{n}/resources/img/{n}.svg".format(r=ROOT_DIR, n=modname)
@@ -637,6 +637,7 @@ class GenericSoftwareManager(SoftwareManager):
if gem_opts:
type_help = TextComponent(html=self.i18n['core.config.types.tip'])
gem_opts.sort(key=lambda o: o.value)
gem_selector = MultipleSelectComponent(label=None,
tooltip=None,
options=gem_opts,