diff --git a/app/common/config.py b/app/common/config.py index 9c8183d..63d763f 100644 --- a/app/common/config.py +++ b/app/common/config.py @@ -59,7 +59,7 @@ class Config(QConfig): careerGamesNumber = RangeConfigItem("Functions", "CareerGamesNumber", 20, RangeValidator(10, 100)) apiConcurrencyNumber = RangeConfigItem("Functions", "ApiConcurrencyNumber", 1, - RangeValidator(1, 5), restart=True) + RangeValidator(1, 20), restart=True) gameInfoFilter = ConfigItem( "Functions", "GameInfoFilter", False, BoolValidator()) diff --git a/app/lol/tools.py b/app/lol/tools.py index 51a8fc8..5f8d71c 100644 --- a/app/lol/tools.py +++ b/app/lol/tools.py @@ -752,7 +752,6 @@ async def parseAllyGameInfo(session, currentSummonerId, useSGP=False): tasks = [getSummonerGamesInfoViaSGP(item, isRank, currentSummonerId) for item in session['myTeam']] summoners = await asyncio.gather(*tasks) - print('hi') except: tasks = [parseSummonerGameInfo(item, isRank, currentSummonerId) for item in session['myTeam']] @@ -1642,8 +1641,6 @@ def patchDpiChangedMessage(hWnd): SWP_SHOWWINDOW ) - print('hi') - win32gui.SetWindowPos( windowCefHWnd, 0, diff --git a/app/view/main_window.py b/app/view/main_window.py index 20ea277..a85b0ea 100644 --- a/app/view/main_window.py +++ b/app/view/main_window.py @@ -2,7 +2,7 @@ import sys import traceback import time -import webbrowser +import copy from pathlib import Path import pyperclip @@ -586,11 +586,12 @@ def __setLolInstallFolder(self, folder: str): folder = folder.replace("LeagueClient", "TCLS") folder = f"{folder[:1].upper()}{folder[1:]}" - current = cfg.get(cfg.lolFolder) + current: list = cfg.get(cfg.lolFolder) - if folder not in current: - current.append(current) - cfg.set(cfg.lolFolder, current) + if folder.lower() not in [item.lower() for item in current]: + new = copy.deepcopy(current) + new.append(folder) + cfg.set(cfg.lolFolder, new) @asyncSlot(dict) async def __onCurrentSummonerProfileChanged(self, data: dict): diff --git a/app/view/setting_interface.py b/app/view/setting_interface.py index d4b2732..5e957d9 100644 --- a/app/view/setting_interface.py +++ b/app/view/setting_interface.py @@ -38,7 +38,7 @@ def __init__(self, parent=None): cfg.apiConcurrencyNumber, self.tr("LCU API concurrency number"), self.tr("Number of concurrency:"), - 1, 1, 5, + 1, 1, 20, Icon.APPLIST, self.tr("Setting the maximum number of API concurrency."), self.functionGroup)