Skip to content

Commit

Permalink
DeviceList: Do not emit adapter-changed twice
Browse files Browse the repository at this point in the history
Thanks @MikuChan03 for pointing out the problem and the solution.
  • Loading branch information
infirit committed Oct 12, 2019
1 parent dd75308 commit d94be63
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion blueman/gui/DeviceList.py
Expand Up @@ -244,7 +244,6 @@ def set_adapter(self, adapter=None):
try:
self.Adapter = self.manager.get_adapter(adapter)
self.__adapter_path = self.Adapter.get_object_path()
self.emit("adapter-changed", self.__adapter_path)
except bluez.errors.DBusNoSuchAdapterError:
logging.warning('Failed to set adapter, trying first available.')
self.set_adapter(None)
Expand Down

0 comments on commit d94be63

Please sign in to comment.