Skip to content

Commit

Permalink
Update nss.py
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Mar 20, 2024
1 parent 9c27b25 commit 130e1e0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Tools/HolocronToolset/src/toolset/gui/editors/nss.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,15 +407,25 @@ def onInsertShortcut(self):

def onFunctionSearch(self):
string = self.ui.functionSearchEdit.text()
if not string:
return
lower_string = string.lower()
for i in range(self.ui.functionList.count()):
item = self.ui.functionList.item(i)
item.setHidden(string not in item.text())
if not item:
continue
item.setHidden(lower_string not in item.text().lower())

def onConstantSearch(self):
string = self.ui.constantSearchEdit.text()
if not string:
return
lower_string = string.lower()
for i in range(self.ui.constantList.count()):
item = self.ui.constantList.item(i)
item.setHidden(string not in item.text())
if not item:
continue
item.setHidden(lower_string not in item.text().lower())


class LineNumberArea(QWidget):
Expand Down

0 comments on commit 130e1e0

Please sign in to comment.