diff --git a/app/common/config.py b/app/common/config.py index 9f5ffea..7e010b3 100644 --- a/app/common/config.py +++ b/app/common/config.py @@ -155,8 +155,8 @@ class Config(QConfig): opggPosition = ConfigItem("Functions", "OpggPosition", "MID", OptionsValidator([ "TOP", "JUNGLE", "MID", "ADC", "SUPPORT"])) - autoClearGameinfo = ConfigItem( - "Functions", "AutoClearGameinfo", True, BoolValidator()) + enableReserveGameinfo = ConfigItem( + "Functions", "EnableReserveGameinfo", False, BoolValidator()) YEAR = 2023 diff --git a/app/common/icons.py b/app/common/icons.py index 09a9ac2..a4aff39 100644 --- a/app/common/icons.py +++ b/app/common/icons.py @@ -64,6 +64,7 @@ class Icon(FluentIconBase, Enum): LEFTARROW = 'LeftArrow' WINDOW = "Window" ERASER = "Eraser" + ATTACHTEXT = "AttachText" def path(self, theme=Theme.AUTO): return f'./app/resource/icons/{self.value}_{getIconColor(theme)}.svg' diff --git a/app/resource/i18n/Seraphine.zh_CN.qm b/app/resource/i18n/Seraphine.zh_CN.qm index 980c5f6..ee1ad54 100644 Binary files a/app/resource/i18n/Seraphine.zh_CN.qm and b/app/resource/i18n/Seraphine.zh_CN.qm differ diff --git a/app/resource/i18n/Seraphine.zh_CN.ts b/app/resource/i18n/Seraphine.zh_CN.ts index 118b49d..2457fac 100644 --- a/app/resource/i18n/Seraphine.zh_CN.ts +++ b/app/resource/i18n/Seraphine.zh_CN.ts @@ -1398,42 +1398,42 @@ If champions set by lane are not available, default settings will be used.游戏大厅 - + Selecting Champions 英雄选择 - + Gaming 游戏中 - + Waiting for status 等待游戏结果 - + End of game 游戏结束 - + Lobby 房间组队中 - + Ready check 匹配确认 - + Match making 匹配中 - + Exception occurred 😥 程序出现异常 😥 @@ -1499,17 +1499,17 @@ If champions set by lane are not available, default settings will be used.客户端信息请求失败 - + Blue Team 蓝色方 - + Red Team 红色方 - + Waiting reconnect 等待重新连接 @@ -2818,12 +2818,22 @@ when they are used by Seraphine, which will cost more time Clear Game Information interface - 自动清空对局信息界面 + 自动清空对局信息界面 Clear Game Information interface automatically when back to lobby - 在回到大厅或组队房间时清空对局信息界面 + 在回到大厅或组队房间时清空对局信息界面 + + + + Reserve Game Information interface + 保留对局信息界面内容 + + + + Reserve Game Information interface until the next champion selection starts + 保留上一局的对局信息内容直到下一次对局开始 diff --git a/app/resource/icons/AttachText_black.svg b/app/resource/icons/AttachText_black.svg new file mode 100644 index 0000000..1bca14e --- /dev/null +++ b/app/resource/icons/AttachText_black.svg @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/app/resource/icons/AttachText_white.svg b/app/resource/icons/AttachText_white.svg new file mode 100644 index 0000000..2f5a484 --- /dev/null +++ b/app/resource/icons/AttachText_white.svg @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/app/view/main_window.py b/app/view/main_window.py index 37c0305..4377a8f 100644 --- a/app/view/main_window.py +++ b/app/view/main_window.py @@ -945,7 +945,7 @@ async def paintTeamColor(): self.checkAndSwitchTo(self.gameInfoInterface) async def __onGameEnd(self): - if cfg.get(cfg.autoClearGameinfo): + if not cfg.get(cfg.enableReserveGameinfo): self.gameInfoInterface.clear() def __checkWindowSize(self): diff --git a/app/view/setting_interface.py b/app/view/setting_interface.py index 739bfa2..3f8c7c7 100644 --- a/app/view/setting_interface.py +++ b/app/view/setting_interface.py @@ -72,10 +72,10 @@ def __init__(self, parent=None): cfg.autoShowOpgg) self.autoClearGameinfoCard = SwitchSettingCard( - Icon.ERASER, self.tr("Clear Game Information interface"), + Icon.ATTACHTEXT, self.tr("Reserve Game Information interface"), self.tr( - "Clear Game Information interface automatically when back to lobby"), - cfg.autoClearGameinfo + "Reserve Game Information interface until the next champion selection starts"), + cfg.enableReserveGameinfo ) self.generalGroup = SettingCardGroup(self.tr("General"),