Browse Source

Show firmware version number

The firmware version number is now displayed in the device list and
configuration screen headerbar.
Clara Hobbs 7 years ago
parent
commit
5bdff7958d
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      pd-buddy-gtk.py

+ 6
- 3
pd-buddy-gtk.py View File

@@ -121,8 +121,9 @@ class SelectListRow(Gtk.ListBoxRow):
121 121
         self._builder.connect_signals(self)
122 122
 
123 123
         name = self._builder.get_object("name")
124
-        name.set_text('{} {}'.format(self.model.serport.manufacturer,
125
-                                     self.model.serport.product))
124
+        name.set_text('{} {} {}'.format(self.model.serport.manufacturer,
125
+                                        self.model.serport.product,
126
+                                        self.model.serport.serial_number))
126 127
 
127 128
         device = self._builder.get_object("device")
128 129
         device.set_text(self.model.serport.device)
@@ -203,7 +204,9 @@ class Handler:
203 204
         # Show the Sink page
204 205
         hst = self.builder.get_object("header-stack")
205 206
         hsink = self.builder.get_object("header-sink")
206
-        hsink.set_title('{} {}'.format(serport.manufacturer, serport.product))
207
+        hsink.set_title('{} {} {}'.format(serport.manufacturer,
208
+                                          serport.product,
209
+                                          serport.serial_number))
207 210
         hsink.set_subtitle(serport.device)
208 211
         hst.set_visible_child(hsink)
209 212
 

Loading…
Cancel
Save