Cleanup previous PR

The sort button used by the grid view still needs update_menu to take a
menu parameter
This commit is contained in:
Kovid Goyal 2023-04-30 20:30:07 +05:30
parent 5d1e886cf9
commit 40f1948189
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -98,8 +98,8 @@ class SortByAction(InterfaceAction):
w.setStyleSheet('QToolButton::menu-button {image: none; }'
'QToolButton::menu-arrow {image: none; }')
def update_menu(self):
menu = self.qaction.menu()
def update_menu(self, menu=None):
menu = menu or self.qaction.menu()
for action in menu.actions():
if hasattr(action, 'sort_requested'):
action.sort_requested.disconnect()