Skip to content

Commit

Permalink
修复可能的生涯界面 "games" 键报错
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Jun 2, 2024
1 parent e9f9929 commit 907eca4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/view/career_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,10 @@ async def __changeToCurrentSummoner(self):
@asyncSlot()
async def refresh(self):
if self.puuid:
tmp_filter_idx = self.filterComboBox.currentIndex()
index = self.filterComboBox.currentIndex()
await self.updateInterface(puuid=self.puuid)
self.filterComboBox.setCurrentIndex(tmp_filter_idx)
self.__onfilterComboBoxChanged(tmp_filter_idx)
self.filterComboBox.setCurrentIndex(index)
self.__onfilterComboBoxChanged(index)

async def updateInterface(self, puuid=None, summoner=None):
'''
Expand Down Expand Up @@ -531,7 +531,7 @@ def __onfilterComboBoxChanged(self, index):
targetId = 0

hitGames, kills, deaths, assists, wins, losses = parseGames(
self.games["games"], targetId)
self.games.get("games", []), targetId)

for game in hitGames:
bar = GameInfoBar(game)
Expand Down

0 comments on commit 907eca4

Please sign in to comment.