From 6cb9db370342ed2f6e4021aecbcfdd838d0698fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Mon, 30 Dec 2024 19:13:03 +0800 Subject: [PATCH] . --- py/LunaTranslator/gui/dialog_savedgame.py | 2 +- py/LunaTranslator/gui/dialog_savedgame_common.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/py/LunaTranslator/gui/dialog_savedgame.py b/py/LunaTranslator/gui/dialog_savedgame.py index f9ba4cc7..b0cb8ee6 100644 --- a/py/LunaTranslator/gui/dialog_savedgame.py +++ b/py/LunaTranslator/gui/dialog_savedgame.py @@ -95,7 +95,7 @@ class dialog_savedgame_integrated(saveposwindow): def syssetting(self): dialog_syssetting( self.__internal, - type_={0: 1, 1: 2}[globalconfig["gamemanager_integrated_internal_layout"]], + type_=globalconfig["gamemanager_integrated_internal_layout"], ) def resizeEvent(self, e: QResizeEvent): diff --git a/py/LunaTranslator/gui/dialog_savedgame_common.py b/py/LunaTranslator/gui/dialog_savedgame_common.py index 0bc0bd28..ab967b51 100644 --- a/py/LunaTranslator/gui/dialog_savedgame_common.py +++ b/py/LunaTranslator/gui/dialog_savedgame_common.py @@ -384,7 +384,7 @@ class dialog_syssetting(LDialog): ) formLayout.addRow(SplitLine()) - if type_ == 1: + if type_ == 2: for key, name in [ ("itemw", "宽度"), ("itemh", "高度"), @@ -414,7 +414,7 @@ class dialog_syssetting(LDialog): ), ) - elif type_ == 2: + elif type_ == 1: for key, name in [ ("listitemheight", "高度"), ]: