diff --git a/launcher/control.py b/launcher/control.py index 06fac49..24ae81b 100644 --- a/launcher/control.py +++ b/launcher/control.py @@ -283,7 +283,19 @@ def on_project_changed(self, index): apps = lib.get_apps(project) self._registered_actions[:] = actions + apps - silos = io.distinct("silo") + silos = [s['name'] for s in io.find({"type": "asset", "silo": None})] + silos_old = io.distinct("silo") + for silo in silos_old: + if silo not in silos and silo is not None: + silos.append(silo) + + self._model.push([ + dict({ + "name": silo, + "icon": DEFAULTS["icon"]["silo"], + }) + for silo in sorted(silos) + ]) self._model.push([ dict({ "name": silo,