From f512fbc9289ab972cc974c8abaed1b5e808ff9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sun, 16 Jun 2024 15:57:32 +0800 Subject: [PATCH] . --- LunaTranslator/LunaTranslator/gui/selecthook.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/selecthook.py b/LunaTranslator/LunaTranslator/gui/selecthook.py index bdab7664..2fe6486b 100644 --- a/LunaTranslator/LunaTranslator/gui/selecthook.py +++ b/LunaTranslator/LunaTranslator/gui/selecthook.py @@ -210,9 +210,9 @@ class searchhookparam(QDialog): layout1 = QHBoxLayout() layout1.addWidget(QLabel(_TR("代码页"))) self.codepagesave = { - "spcp": savehook_new_data[gobject.baseobject.textsource.pname][ - "codepage_index" - ] + "spcp": savehook_new_data[gobject.baseobject.textsource.pname].get( + "codepage_index", globalconfig["codepage_index"] + ) } layout1.addWidget( getsimplecombobox(