Skip to content

Commit

Permalink
Merge pull request getavalon#5 from pypeclub/feature/PYPE-120_Ditch_silo
Browse files Browse the repository at this point in the history
Feature/pype 120 ditch silo
  • Loading branch information
mkolar authored Jan 16, 2019
2 parents 7261977 + 2320f0d commit 9727a87
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion launcher/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9727a87

Please sign in to comment.