Skip to content

Commit

Permalink
Ensure device_name property gets bound
Browse files Browse the repository at this point in the history
  • Loading branch information
nocarryr committed Apr 4, 2017
1 parent 6ba578e commit bd2647d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vidhubcontrol/kivyui/main.py
Expand Up @@ -132,11 +132,9 @@ def on_device(self, instance, value):
if self.app is None:
return
self.app.bind_events(self.device, device_name=self.on_device_name)
def on_app(self, *args):
def on_app(self, instance, value):
if self.app is None:
return
if self.device is not None:
return
self.app.bind_events(self.device, device_name=self.on_device_name)
def on_device_name(self, instance, value, **kwargs):
self.text = value
Expand Down

0 comments on commit bd2647d

Please sign in to comment.