summaryrefslogtreecommitdiff
path: root/ui/windows
diff options
context:
space:
mode:
authorChristian Kolset <ckolset@colostate.edu>2026-07-29 13:03:24 -0600
committerChristian Kolset <ckolset@colostate.edu>2026-07-29 13:03:24 -0600
commitd9ca58e48cf92438087ac24ee261c2c4911316b1 (patch)
tree7d2b01d5703842b955b3e1f0ccb15f1f35274a43 /ui/windows
parentb407a079000f6a4b04ecf38eca17c57719e7a7ec (diff)
Add editable device display name, persist it across profile save/load
DeviceInfo.name existed but was hardcoded per device type and never operator-editable. Adds a Display Name field to Add Device and makes the Info-tab Name field in the device config dialog editable, and threads the name through get_save_config()/ProfileManager.apply() so a custom name survives a .labdaq save/reload instead of reverting to the type default. Name is applied post-construction rather than as a constructor kwarg, since no device factory declares a "name" param. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'ui/windows')
-rw-r--r--ui/windows/devices_window.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/windows/devices_window.py b/ui/windows/devices_window.py
index ac9d13c..2c484e8 100644
--- a/ui/windows/devices_window.py
+++ b/ui/windows/devices_window.py
@@ -349,7 +349,7 @@ class DevicesWindow(QWidget):
dev = self.registry.get_instance(device_id)
if dev:
DeviceConfigDialog(dev, self).exec()
- self._ch_tab.refresh()
+ self.refresh() # rebuilds device rows (picks up a renamed display name) + Signals tab
self.device_reconfigured.emit(device_id)
def _on_remove(self, device_id: str):