diff --git a/LunaTranslator/LunaTranslator/gui/dialog_savedgame_common.py b/LunaTranslator/LunaTranslator/gui/dialog_savedgame_common.py index 26c00cce..9c47e59d 100644 --- a/LunaTranslator/LunaTranslator/gui/dialog_savedgame_common.py +++ b/LunaTranslator/LunaTranslator/gui/dialog_savedgame_common.py @@ -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) diff --git a/LunaTranslator/LunaTranslator/gui/translatorUI.py b/LunaTranslator/LunaTranslator/gui/translatorUI.py index 7446aed0..6bd5a3a7 100644 --- a/LunaTranslator/LunaTranslator/gui/translatorUI.py +++ b/LunaTranslator/LunaTranslator/gui/translatorUI.py @@ -984,7 +984,7 @@ class TranslatorWindow(resizableframeless): ] self.translate_text.append( True, - False, + globalconfig["showatcenter"], __text, __tags, (False, True, True), diff --git a/LunaTranslator/LunaTranslator/myutils/utils.py b/LunaTranslator/LunaTranslator/myutils/utils.py index 741a09fb..fcdba035 100644 --- a/LunaTranslator/LunaTranslator/myutils/utils.py +++ b/LunaTranslator/LunaTranslator/myutils/utils.py @@ -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: diff --git a/LunaTranslator/LunaTranslator/transoptimi/vndbnamemap.py b/LunaTranslator/LunaTranslator/transoptimi/vndbnamemap.py index 0ec3d63e..f9e88829 100644 --- a/LunaTranslator/LunaTranslator/transoptimi/vndbnamemap.py +++ b/LunaTranslator/LunaTranslator/transoptimi/vndbnamemap.py @@ -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"] ) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index b3639297..b9cba918 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -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)