Skip to content

Commit

Permalink
Enhancement: Shortcuts should only be shortcut listings and no option…
Browse files Browse the repository at this point in the history
… for search (#1734)

* pin werkzeug to >=2.2.3

* EM: Shortcuts should only be shortcut listings

* Set different WIndowTitle for both shortcut and search
  • Loading branch information
sratslla authored Apr 5, 2023
1 parent 11281eb commit b3617ae
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mslib/msui/msui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,18 @@ def show_shortcuts(self, search_mode=False):
self.shortcuts_dlg.reset_highlight()
self.shortcuts_dlg.fill_list()
self.shortcuts_dlg.show()

self.shortcuts_dlg.cbAdvanced.setHidden(True)
self.shortcuts_dlg.cbHighlight.setHidden(True)
self.shortcuts_dlg.cbAdvanced.setCheckState(0)
self.shortcuts_dlg.cbHighlight.setCheckState(0)
self.shortcuts_dlg.leShortcutFilter.setText("")
self.shortcuts_dlg.setWindowTitle("Shortcuts")

if search_mode:
self.shortcuts_dlg.setWindowTitle("Search")
self.shortcuts_dlg.cbAdvanced.setHidden(False)
self.shortcuts_dlg.cbHighlight.setHidden(False)
self.shortcuts_dlg.cbDisplayType.setCurrentIndex(1)
self.shortcuts_dlg.leShortcutFilter.setText("")
self.shortcuts_dlg.cbAdvanced.setCheckState(2)
Expand Down

0 comments on commit b3617ae

Please sign in to comment.