@@ 217,11 217,11 @@ class AtemWindow(SwitcherPage, MediaPage, AudioPage, CameraPage):
widget.forall(self.apply_css, provider)
def on_switcher_ip_changed(self, *args):
- print("Settings changed!")
-
+ print("Connection settings changed")
+ print("Closing old connection...")
self.connection.die()
self.connection.join(timeout=1)
-
+ print("Starting new connection to {}".format(self.settings.get_string('switcher-ip')))
self.connection = AtemConnection(self.on_change, self.on_disconnect, self.on_transfer_progress,
self.on_download_done)
self.connection.daemon = True