diff --git a/LunaTranslator/LunaTranslator/gui/setting_translate.py b/LunaTranslator/LunaTranslator/gui/setting_translate.py index a608afcc..25dc782e 100644 --- a/LunaTranslator/LunaTranslator/gui/setting_translate.py +++ b/LunaTranslator/LunaTranslator/gui/setting_translate.py @@ -227,7 +227,10 @@ def selectllmcallback_2(self, countnum, btnplus, fanyi, name): except: pass globalconfig["fanyi"][fanyi]["use"] = False - + try: + gobject.baseobject.translators.pop(fanyi) + except: + pass layout: QGridLayout = getattr(self, "damoxinggridinternal" + btnplus) idx = countnum.index(fanyi) line = idx // 3 diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index c4483544..536eb4ad 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -29,7 +29,7 @@ include(generate_product_version) set(VERSION_MAJOR 5) set(VERSION_MINOR 36) -set(VERSION_PATCH 5) +set(VERSION_PATCH 6) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h)