aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2013-01-08 16:55:14 +1300
committerRobert Ancell <robert.ancell@canonical.com>2013-01-08 16:55:14 +1300
commit5619bd36ab6119e0d8446b8a937dce2ba257b87b (patch)
tree867efe2a669ace16ba5fcd423029e94ab04fa9f4
parentbc4291546397e35815b05251579b8ff7821de16e (diff)
downloadayatana-indicator-bluetooth-5619bd36ab6119e0d8446b8a937dce2ba257b87b.tar.gz
ayatana-indicator-bluetooth-5619bd36ab6119e0d8446b8a937dce2ba257b87b.tar.bz2
ayatana-indicator-bluetooth-5619bd36ab6119e0d8446b8a937dce2ba257b87b.zip
Fix item disconnection
-rw-r--r--src/indicator-bluetooth-service.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indicator-bluetooth-service.vala b/src/indicator-bluetooth-service.vala
index a1015e4..7481df6 100644
--- a/src/indicator-bluetooth-service.vala
+++ b/src/indicator-bluetooth-service.vala
@@ -253,7 +253,7 @@ private class BluetoothMenuItem : Dbusmenu.Menuitem
connect_item.property_set (Dbusmenu.MENUITEM_PROP_LABEL, _("Connection"));
connect_item.property_set (Dbusmenu.MENUITEM_PROP_TYPE, "x-canonical-switch");
connect_item.property_set_int (Dbusmenu.MENUITEM_PROP_TOGGLE_STATE, connected ? Dbusmenu.MENUITEM_TOGGLE_STATE_CHECKED : Dbusmenu.MENUITEM_TOGGLE_STATE_UNCHECKED);
- connect_item.item_activated.connect (() => { connect_service (proxy.get_object_path (), true); });
+ connect_item.item_activated.connect (() => { connect_service (proxy.get_object_path (), connect_item.property_get_int (Dbusmenu.MENUITEM_PROP_TOGGLE_STATE) != Dbusmenu.MENUITEM_TOGGLE_STATE_CHECKED); });
child_append (connect_item);
}