kete/prompt: do_fetch: allow for devices in pairable mode to be paired
this is something quite useful actually
This commit is contained in:
parent
6ad3851afd
commit
1d3bf40a8c
|
@ -236,6 +236,10 @@ class TuhiKeteManager(_DBusObject):
|
|||
def devices(self):
|
||||
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
|
||||
def searching(self):
|
||||
return self.proxy.get_cached_property('Searching')
|
||||
|
@ -785,7 +789,7 @@ class TuhiKeteShell(cmd.Cmd):
|
|||
|
||||
device = None
|
||||
|
||||
for d in self._manager.devices:
|
||||
for d in self._manager.devices + self._manager.pairable_devices:
|
||||
if d.address == address:
|
||||
device = d
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue