Skip to content

Commit

Permalink
Fix auto create rune pages multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
AlberLC committed Nov 3, 2022
1 parent 3835478 commit 5f30c88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flanarunas/flana_runas.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,13 @@ async def set_rune_pages_():
if not self.current_champion:
self.qt_app.list_rune_pages.clear()
return

local_champion = self.current_champion
selected_rune_pages = self.saved_rune_pages.get(local_champion.id, [])
combo_index = self.qt_app.combo_search.findText(local_champion.name)
self.qt_app.combo_search.blockSignals(True)
self.qt_app.combo_search.setCurrentIndex(combo_index)
self.qt_app.combo_search.blockSignals(False)
self.qt_app.list_rune_pages.items_ = selected_rune_pages
if self.is_lol_connected:
for selected_rune_page in selected_rune_pages:
Expand Down

0 comments on commit 5f30c88

Please sign in to comment.