mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
993fcab676
commit
1b709efc9f
@ -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)
|
||||
|
@ -984,7 +984,7 @@ class TranslatorWindow(resizableframeless):
|
||||
]
|
||||
self.translate_text.append(
|
||||
True,
|
||||
False,
|
||||
globalconfig["showatcenter"],
|
||||
__text,
|
||||
__tags,
|
||||
(False, True, True),
|
||||
|
@ -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:
|
||||
|
@ -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"]
|
||||
)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user