Browse Source

make favorites more robust against restarts

master
Nils 7 months ago
parent
commit
1e759146fa
  1. 2
      qtgui/favorites.py

2
qtgui/favorites.py

@ -84,6 +84,8 @@ class FavoritesTreeController(InstrumentTreeController):
top10 = self.getTop10FavoriteInstruments() # Return an ordered list of double tuple ((libid, instid), counter)
for placement, ((libId, instId), counter) in enumerate(top10):
if not (libId, instId) in self.guiInstruments:
continue
gi = self.guiInstruments[(libId, instId)]
mostUsed.addChild(gi)
gi.injectWidgets() #only possible after gi.init() was done and item inserted.

Loading…
Cancel
Save