This commit is contained in:
恍兮惚兮 2024-07-26 21:00:31 +08:00
parent 2ea364c93d
commit 4478e1a6fc
2 changed files with 10 additions and 6 deletions

View File

@ -218,11 +218,15 @@ class searchhookparam(LDialog):
layout1 = QHBoxLayout() layout1 = QHBoxLayout()
layout1.addWidget(LLabel("代码页")) layout1.addWidget(LLabel("代码页"))
self.codepagesave = { if savehook_new_data[gobject.baseobject.textsource.gameuid][
"spcp": savehook_new_data[gobject.baseobject.textsource.gameuid].get( "hooksetting_follow_default"
"codepage_index", globalconfig["codepage_index"] ]:
) cp = globalconfig["codepage_index"]
} else:
cp = savehook_new_data[gobject.baseobject.textsource.gameuid][
"hooksetting_private"
].get("codepage_index", globalconfig["codepage_index"])
self.codepagesave = {"spcp": cp}
layout1.addWidget( layout1.addWidget(
getsimplecombobox( getsimplecombobox(
static_data["codepage_display"], self.codepagesave, "spcp" static_data["codepage_display"], self.codepagesave, "spcp"

View File

@ -29,7 +29,7 @@ include(generate_product_version)
set(VERSION_MAJOR 5) set(VERSION_MAJOR 5)
set(VERSION_MINOR 15) set(VERSION_MINOR 15)
set(VERSION_PATCH 11) set(VERSION_PATCH 12)
add_library(pch pch.cpp) add_library(pch pch.cpp)
target_precompile_headers(pch PUBLIC pch.h) target_precompile_headers(pch PUBLIC pch.h)