Skip to content

Commit

Permalink
修复自动 BP 初始化时没有正确设置按钮可用性的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Jun 8, 2024
1 parent 743e904 commit 3419714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/view/auxiliary_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ def __initWidget(self):
self.rankLabel.setStyleSheet("font: bold")

# 逻辑是,必须要设置默认,才能设置具体分路和启动功能
selected = qconfig.get(self.defaultChampionsConfigItem) != ''
selected = qconfig.get(self.defaultChampionsConfigItem) != []
checked = qconfig.get(self.enableConfigItem)
timeoutChecked = qconfig.get(self.enableTimeoutCompleteCfgItem)

Expand Down Expand Up @@ -1478,7 +1478,7 @@ def __initWidget(self):
self.defaultHintLabel.setStyleSheet("font: bold")
self.rankLabel.setStyleSheet("font: bold")

haveDefault = qconfig.get(self.defaultChampionsConfigItem) != ''
haveDefault = qconfig.get(self.defaultChampionsConfigItem) != []
enabled = qconfig.get(self.enableConfigItem)
delayTime = qconfig.get(self.delayTimeConfigItem)
friendlyEnabled = qconfig.get(self.friendlyConfigItem)
Expand Down

0 comments on commit 3419714

Please sign in to comment.