Sort actions by label if it exists instead of name (#5106)

This commit is contained in:
Fabià Serra Arrizabalaga 2023-06-06 18:51:44 +02:00 committed by GitHub
parent a227eaa806
commit 29c0b8a12a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -273,7 +273,7 @@ class ActionModel(QtGui.QStandardItemModel):
# Sort by order and name
return sorted(
compatible,
key=lambda action: (action.order, action.name)
key=lambda action: (action.order, lib.get_action_label(action))
)
def update_force_not_open_workfile_settings(self, is_checked, action_id):