mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +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:
|
if globalconfig["sourcestatus2"][_[mode]]["use"] == False:
|
||||||
globalconfig["sourcestatus2"][_[mode]]["use"] = True
|
globalconfig["sourcestatus2"][_[mode]]["use"] = True
|
||||||
|
|
||||||
yuitsu_switch(
|
for k in globalconfig["sourcestatus2"]:
|
||||||
gobject.baseobject.settin_ui,
|
globalconfig["sourcestatus2"][k]["use"] = k == _[mode]
|
||||||
globalconfig["sourcestatus2"],
|
try:
|
||||||
"sourceswitchs",
|
getattr(gobject.baseobject.settin_ui, "sourceswitchs")[
|
||||||
_[mode],
|
k
|
||||||
None,
|
].setChecked(k == _[mode])
|
||||||
True,
|
except:
|
||||||
)
|
pass
|
||||||
|
|
||||||
gobject.baseobject.starttextsource(use=_[mode], checked=True)
|
gobject.baseobject.starttextsource(use=_[mode], checked=True)
|
||||||
|
|
||||||
localeswitchedrun(gameuid)
|
localeswitchedrun(gameuid)
|
||||||
|
@ -984,7 +984,7 @@ class TranslatorWindow(resizableframeless):
|
|||||||
]
|
]
|
||||||
self.translate_text.append(
|
self.translate_text.append(
|
||||||
True,
|
True,
|
||||||
False,
|
globalconfig["showatcenter"],
|
||||||
__text,
|
__text,
|
||||||
__tags,
|
__tags,
|
||||||
(False, True, True),
|
(False, True, True),
|
||||||
|
@ -209,6 +209,8 @@ def trysearchforid_1(gameuid, searchargs: list):
|
|||||||
for key in __:
|
for key in __:
|
||||||
vid = None
|
vid = None
|
||||||
for arg in searchargs:
|
for arg in searchargs:
|
||||||
|
if not arg:
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
vid = targetmod[key].getidbytitle(arg)
|
vid = targetmod[key].getidbytitle(arg)
|
||||||
except:
|
except:
|
||||||
|
@ -40,6 +40,7 @@ class Process:
|
|||||||
gameuid = gobject.baseobject.textsource.gameuid
|
gameuid = gobject.baseobject.textsource.gameuid
|
||||||
return savehook_new_data[gameuid]["namemap2"]
|
return savehook_new_data[gameuid]["namemap2"]
|
||||||
elif which == 3:
|
elif which == 3:
|
||||||
|
gameuid = gobject.baseobject.textsource.gameuid
|
||||||
return (
|
return (
|
||||||
savehook_new_data[gameuid]["namemap2"] + globalconfig["global_namemap2"]
|
savehook_new_data[gameuid]["namemap2"] + globalconfig["global_namemap2"]
|
||||||
)
|
)
|
||||||
|
@ -29,7 +29,7 @@ include(generate_product_version)
|
|||||||
|
|
||||||
set(VERSION_MAJOR 5)
|
set(VERSION_MAJOR 5)
|
||||||
set(VERSION_MINOR 28)
|
set(VERSION_MINOR 28)
|
||||||
set(VERSION_PATCH 0)
|
set(VERSION_PATCH 1)
|
||||||
|
|
||||||
add_library(pch pch.cpp)
|
add_library(pch pch.cpp)
|
||||||
target_precompile_headers(pch PUBLIC pch.h)
|
target_precompile_headers(pch PUBLIC pch.h)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user