From 1e8979b6a1d1283d0ab10b79cdcec0217e20427c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Tue, 17 Sep 2024 08:48:59 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/gui/setting_translate.py | 5 ++++- plugins/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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)