dashboard: Sort TTL moninj channels by name

With growing system complexity, the moninj channel index is
no longer a very intuitive ordering for typical end users.
This commit is contained in:
David Nadlinger 2019-03-10 20:12:28 +00:00
parent 5fd92a6175
commit b3db3ea6fc
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ class _TTLWidget(QtWidgets.QFrame):
self.channel = channel
self.set_mode = dm.ttl_set_mode
self.force_out = force_out
self.title = title
self.setFrameShape(QtWidgets.QFrame.Box)
self.setFrameShadow(QtWidgets.QFrame.Raised)
@ -131,7 +132,7 @@ class _TTLWidget(QtWidgets.QFrame):
self.programmatic_change = False
def sort_key(self):
return self.channel
return self.title
class _SimpleDisplayWidget(QtWidgets.QFrame):