Skip to content

Commit

Permalink
修复从客户端复制来的召唤师名无法观战的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Jun 7, 2024
1 parent d49093a commit 0e245fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/view/auxiliary_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,11 @@ def info(type, title, content):
parent=self.window().auxiliaryFuncInterface)

try:
await connector.spectate(self.lineEdit.text())
text = self.lineEdit.text()
text = text.replace('\u2066', '').replace('\u2069', '')

await connector.spectate(text)

except SummonerNotFound:
info('error', self.tr("Summoner not found"),
self.tr("Please check the summoner's name and retry"))
Expand Down

0 comments on commit 0e245fa

Please sign in to comment.