Skip to content

Commit

Permalink
SearchModuleWidget: show module description also for first match (#3372)
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Jan 22, 2024
1 parent e07531f commit cbef14a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gui/wxpython/gui_core/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ def __init__(self, parent, model, showChoice=True, showTip=False, **kwargs):

if self._showTip:
self._searchTip = StaticWrapText(
parent=self, id=wx.ID_ANY, label="Choose a tool", size=(-1, 35)
parent=self, id=wx.ID_ANY, label="Choose a tool", size=(-1, 40)
)

if self._showChoice:
Expand Down Expand Up @@ -1315,9 +1315,9 @@ def OnSearchModule(self, event):
self._searchChoice.SetSelection(0)
self.OnSelectModule()

label = _("%d tools match") % len(commands)
label = _("{} tools matched").format(len(commands))
if self._showTip:
self._searchTip.SetLabel(label)
self._searchTip.SetLabel(self._searchTip.GetLabel() + " [{}]".format(label))

self.showNotification.emit(message=label)

Expand Down

0 comments on commit cbef14a

Please sign in to comment.