From 407b59c1afe3c069889125f30ec271497aaff655 Mon Sep 17 00:00:00 2001 From: test123456654321 <16307130148@fudan.edu.cn> Date: Sat, 26 Oct 2024 18:54:49 +0800 Subject: [PATCH] fix --- src/LunaTranslator/gui/showword.py | 4 ++++ src/plugins/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/LunaTranslator/gui/showword.py b/src/LunaTranslator/gui/showword.py index 9b03dc16..c6e92e8d 100644 --- a/src/LunaTranslator/gui/showword.py +++ b/src/LunaTranslator/gui/showword.py @@ -794,8 +794,12 @@ class DynamicTreeModel(QStandardItemModel): self.setData(index, len(childs) > 0, DeterminedhasChildren) thisitem = self.itemFromIndex(index) maketuples = tuple((tuple(_) for _ in globalconfig["wordlabel"])) + dump = set() for c in childs: if isinstance(c, str): + if c in dump: + continue + dump.add(c) t = c has = False else: diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index 1a3e093d..2a728a05 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -29,7 +29,7 @@ include(generate_product_version) set(VERSION_MAJOR 5) set(VERSION_MINOR 50) -set(VERSION_PATCH 4) +set(VERSION_PATCH 5) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h)