From 5adcbc33aeadea1e74fb2e20ef9da351c5d579e6 Mon Sep 17 00:00:00 2001 From: Zzaphkiel <1278228162@qq.com> Date: Mon, 11 Sep 2023 13:27:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E7=BB=84=E9=98=9F=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E9=98=88=E5=80=BC=E8=AE=BE=E7=BD=AE=E5=8D=A1=E7=89=87=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E5=88=B0=E8=AE=BE=E7=BD=AE=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/view/auxiliary_interface.py | 8 -------- app/view/setting_interface.py | 7 +++++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/app/view/auxiliary_interface.py b/app/view/auxiliary_interface.py index 95a2e41f..29ff4ee0 100644 --- a/app/view/auxiliary_interface.py +++ b/app/view/auxiliary_interface.py @@ -8,7 +8,6 @@ from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QWidget, QLabel, QCompleter -from .setting_interface import LineEditSettingCard from ..common.icons import Icon from ..common.config import cfg from ..common.style_sheet import StyleSheet @@ -77,12 +76,6 @@ def __init__(self, parent=None): cfg.enableAutoSelectChampion, cfg.autoSelectChampion, self.gameGroup) - # 预组队判定阈值(共同游戏高于该局数的被视为预组队) - self.teamGamesNumberCard = LineEditSettingCard( - cfg.teamGamesNumber, self.tr("Apply"), - self.tr("Pre-team threshold"), 1, Icon.TEAM, - self.tr("Pre-team threshold for common game rounds"), self.gameGroup) - # self.copyPlayersInfoCard = SwitchSettingCard( # Icon.COPY, self.tr("Auto copy players' info"), # self.tr("Copy players' infomation to clipboard when game starts"), @@ -122,7 +115,6 @@ def __initLayout(self): self.gameGroup.addSettingCard(self.spectateCard) # self.gameGroup.addSettingCard(self.dodgeCard) self.gameGroup.addSettingCard(self.lockConfigCard) - self.gameGroup.addSettingCard(self.teamGamesNumberCard) self.expandLayout.setSpacing(30) self.expandLayout.setContentsMargins(36, 0, 36, 0) diff --git a/app/view/setting_interface.py b/app/view/setting_interface.py index ccdc3bdd..dbacfb5f 100644 --- a/app/view/setting_interface.py +++ b/app/view/setting_interface.py @@ -62,6 +62,12 @@ def __init__(self, parent=None): self.functionGroup = SettingCardGroup(self.tr("Functions"), self.scrollWidget) + + self.teamGamesNumberCard = LineEditSettingCard( + cfg.teamGamesNumber, self.tr("Apply"), + self.tr("Pre-team threshold"), 1, Icon.TEAM, + self.tr("Pre-team threshold for common game rounds"), self.functionGroup) + self.careerGamesCount = LineEditSettingCard( cfg.careerGamesNumber, self.tr("Apply"), self.tr("Default games number"), 10, Icon.SLIDESEARCH, @@ -190,6 +196,7 @@ def __initLayout(self): # add cards to group self.functionGroup.addSettingCard(self.careerGamesCount) + self.functionGroup.addSettingCard(self.teamGamesNumberCard) self.functionGroup.addSettingCard(self.gameInfoShowTierCard) self.generalGroup.addSettingCard(self.lolFolderCard)