diff options
| author | Franziska Kunsmann <hi@kunsmann.eu> | 2023-05-01 11:15:23 +0200 |
|---|---|---|
| committer | Franziska Kunsmann <hi@kunsmann.eu> | 2023-05-01 11:15:23 +0200 |
| commit | 4331c59518db95a5a020c37f6b9a809b085ee907 (patch) | |
| tree | e963a38a39e5fb6ec2aab971b957e462722b6584 /gui.py | |
| parent | 1500567e50c8ab20314068566847dcdea109c63d (diff) | |
gui: warn about duplicate buttons, then ignore them
Diffstat (limited to 'gui.py')
| -rw-r--r-- | gui.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -75,6 +75,9 @@ class PyATEMSwitcherGui(): break if i.shortName.lower() in ('-', 'empty', 'x'): continue + if f'in_{i.shortName}' in self.buttons: + log.warning(f'ignoring duplicate button {i.shortName)') + continue log.debug(f'Creating Button for {i.shortName} of type {i.externalPortType}: {i.longName}') btn = Gtk.Button.new_with_label( i.longName |
