Commit 8eb6b504 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

settings-widget: Disable discovery when connecting with switch

The value of the "default-adapter-discovering" property was set
incorrectly when using the switch to connect to a device.

Fixes: 08defddc

Closes: #70
parent 376a5b60
......@@ -1086,9 +1086,10 @@ switch_connected_state_set (GtkSwitch *button,
data->bdaddr = g_strdup (priv->selected_bdaddr);
data->self = self;
g_object_set (G_OBJECT (priv->client),
"default-adapter-discovering", has_default_adapter (self),
if (gtk_switch_get_active (button))
g_object_set (G_OBJECT (priv->client),
"default-adapter-discovering", FALSE,
bluetooth_client_connect_service (priv->client,
gtk_switch_get_active (button),
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment