From 5d6e69d41df7534357daabcf5204ae04806fb26f Mon Sep 17 00:00:00 2001 From: Zzaphkiel Date: Fri, 26 Jul 2024 14:53:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E8=8B=B1=E9=9B=84=20Build=20=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E4=B8=BA=E7=A9=BA=E6=97=B6=E9=94=81=E4=BD=8F=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/view/opgg_window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/view/opgg_window.py b/app/view/opgg_window.py index 6e2adf4..bfaf43f 100644 --- a/app/view/opgg_window.py +++ b/app/view/opgg_window.py @@ -257,6 +257,10 @@ def __onStackedWidgetCurrentChanged(self): elif widget in [self.buildInterface, self.errorInterface]: self.searchButton.setEnabled(False) + if widget is self.tierInterface \ + and not self.buildInterface.getCurrentChampionId(): + self.toggleButton.setEnabled(False) + if (index := self.stackedWidget.currentIndex()) in [0, 1]: self.toggleButton.setCurrentIcon(index)