This commit is contained in:
恍兮惚兮 2024-08-16 18:35:27 +08:00
parent 993fcab676
commit 1b709efc9f
5 changed files with 14 additions and 10 deletions

View File

@ -362,14 +362,15 @@ def startgame(gameuid):
if globalconfig["sourcestatus2"][_[mode]]["use"] == False:
globalconfig["sourcestatus2"][_[mode]]["use"] = True
yuitsu_switch(
gobject.baseobject.settin_ui,
globalconfig["sourcestatus2"],
"sourceswitchs",
_[mode],
None,
True,
)
for k in globalconfig["sourcestatus2"]:
globalconfig["sourcestatus2"][k]["use"] = k == _[mode]
try:
getattr(gobject.baseobject.settin_ui, "sourceswitchs")[
k
].setChecked(k == _[mode])
except:
pass
gobject.baseobject.starttextsource(use=_[mode], checked=True)
localeswitchedrun(gameuid)

View File

@ -984,7 +984,7 @@ class TranslatorWindow(resizableframeless):
]
self.translate_text.append(
True,
False,
globalconfig["showatcenter"],
__text,
__tags,
(False, True, True),

View File

@ -209,6 +209,8 @@ def trysearchforid_1(gameuid, searchargs: list):
for key in __:
vid = None
for arg in searchargs:
if not arg:
continue
try:
vid = targetmod[key].getidbytitle(arg)
except:

View File

@ -40,6 +40,7 @@ class Process:
gameuid = gobject.baseobject.textsource.gameuid
return savehook_new_data[gameuid]["namemap2"]
elif which == 3:
gameuid = gobject.baseobject.textsource.gameuid
return (
savehook_new_data[gameuid]["namemap2"] + globalconfig["global_namemap2"]
)

View File

@ -29,7 +29,7 @@ include(generate_product_version)
set(VERSION_MAJOR 5)
set(VERSION_MINOR 28)
set(VERSION_PATCH 0)
set(VERSION_PATCH 1)
add_library(pch pch.cpp)
target_precompile_headers(pch PUBLIC pch.h)