From 5f30c8871186eabf5deb6c95390782fd06fbda50 Mon Sep 17 00:00:00 2001 From: AlberLC Date: Thu, 3 Nov 2022 06:43:48 +0100 Subject: [PATCH] Fix auto create rune pages multiple times --- flanarunas/flana_runas.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flanarunas/flana_runas.py b/flanarunas/flana_runas.py index cc88adf..d3adcfc 100644 --- a/flanarunas/flana_runas.py +++ b/flanarunas/flana_runas.py @@ -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: