kete/prompt: do_fetch: allow for devices in pairable mode to be paired

this is something quite useful actually
This commit is contained in:
Benjamin Tissoires 2018-01-29 11:06:43 +01:00
parent 6ad3851afd
commit 1d3bf40a8c
1 changed files with 5 additions and 1 deletions

View File

@ -236,6 +236,10 @@ class TuhiKeteManager(_DBusObject):
def devices(self): def devices(self):
return [v for k, v in self._devices.items()] return [v for k, v in self._devices.items()]
@GObject.Property
def pairable_devices(self):
return [v for k, v in self._pairable_devices.items()]
@GObject.Property @GObject.Property
def searching(self): def searching(self):
return self.proxy.get_cached_property('Searching') return self.proxy.get_cached_property('Searching')
@ -785,7 +789,7 @@ class TuhiKeteShell(cmd.Cmd):
device = None device = None
for d in self._manager.devices: for d in self._manager.devices + self._manager.pairable_devices:
if d.address == address: if d.address == address:
device = d device = d
break break