Skip to content

Commit

Permalink
1. BUG修复: 在win11下, 先开游戏再开软件会提示QObject报错
Browse files Browse the repository at this point in the history
  • Loading branch information
Hpero4 committed Oct 21, 2023
1 parent b3b0aad commit 8937976
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/view/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -1129,24 +1129,24 @@ def process_item(item, isAllys=False):

assignTeamId(summoners)

self.gameInfoInterface.enemySummonerInfoReady.emit(
{'summoners': summoners, 'queueId': queueId})

if not self.isChampSelected:
summoners = []
allySummoners = []
with ThreadPoolExecutor() as executor:
futures = [executor.submit(process_item, item, True)
for item in allys]

for future in as_completed(futures):
result = future.result()
if result is not None:
summoners.append(result)
allySummoners.append(result)

assignTeamId(summoners)
assignTeamId(allySummoners)

self.gameInfoInterface.allySummonersInfoReady.emit(
{'summoners': summoners})
{'summoners': allySummoners})

self.gameInfoInterface.enemySummonerInfoReady.emit(
{'summoners': summoners, 'queueId': queueId})

if callback:
callback()
Expand Down

0 comments on commit 8937976

Please sign in to comment.