[gnome-bluetooth/wip/hadess/set-powered: 2/2] lib: Remove adapter power-up
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/set-powered: 2/2] lib: Remove adapter power-up
- Date: Tue, 18 Jan 2022 10:02:14 +0000 (UTC)
commit d9e9338164263f67c96925fd437ce7f2dd5a8736
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 18 10:59:50 2022 +0100
lib: Remove adapter power-up
Remove the adapter power-up when a new default adapter is added. This
should avoid unwanted power-up on the adapter.
lib/bluetooth-client.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index ab035cda..d2e2195c 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -561,8 +561,6 @@ default_adapter_changed (GDBusObjectManager *manager,
DefaultAdapterChangeType change_type,
BluetoothClient *client)
{
- gboolean powered;
-
if (change_type == REMOVAL) {
g_clear_object (&client->default_adapter);
g_debug ("Emptying list store as default adapter removed");
@@ -596,10 +594,6 @@ default_adapter_changed (GDBusObjectManager *manager,
g_debug ("New default adapter so invalidating all the default-adapter* properties");
notify_default_adapter_props (client);
-
- powered = adapter1_get_powered (client->default_adapter);
- if (!powered)
- adapter_set_powered (client, TRUE);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]