From f82eab694b8df85b5d9162e8ca15e6103dd1a702 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: Thu, 25 Jan 2024 20:38:02 +0800 Subject: [PATCH] Update selecthook.py --- LunaTranslator/LunaTranslator/gui/selecthook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/gui/selecthook.py b/LunaTranslator/LunaTranslator/gui/selecthook.py index 731511ca..4e08067c 100644 --- a/LunaTranslator/LunaTranslator/gui/selecthook.py +++ b/LunaTranslator/LunaTranslator/gui/selecthook.py @@ -585,7 +585,7 @@ class hookselect(closeashidewindow): ishide=True for i in range(min(len(gobject.baseobject.textsource.hookdatacollecter[key]),20)): - if searchtext in [_.replace('\n','') for _ in gobject.baseobject.textsource.hookdatacollecter[key][-i]]: + if searchtext in [_.replace('\n','') for _ in gobject.baseobject.textsource.hookdatacollecter[key][-i:]]: ishide=False break self.tttable.setRowHidden(index,ishide)