Skip to content
Permalink
Browse files

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.
  • Loading branch information...
dnadlinger committed Mar 10, 2019
1 parent 5fd92a6 commit b3db3ea6fc82099a91f6d0c5c8a680967ac961aa
Showing with 2 additions and 1 deletion.
  1. +2 −1 artiq/dashboard/moninj.py
@@ -20,6 +20,7 @@ def __init__(self, dm, channel, force_out, title):
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 @@ def refresh_display(self):
self.programmatic_change = False

def sort_key(self):
return self.channel
return self.title


class _SimpleDisplayWidget(QtWidgets.QFrame):

0 comments on commit b3db3ea

Please sign in to comment.
You can’t perform that action at this time.