diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2013-01-08 16:55:14 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2013-01-08 16:55:14 +1300 |
commit | 5619bd36ab6119e0d8446b8a937dce2ba257b87b (patch) | |
tree | 867efe2a669ace16ba5fcd423029e94ab04fa9f4 /src | |
parent | bc4291546397e35815b05251579b8ff7821de16e (diff) | |
download | ayatana-indicator-bluetooth-5619bd36ab6119e0d8446b8a937dce2ba257b87b.tar.gz ayatana-indicator-bluetooth-5619bd36ab6119e0d8446b8a937dce2ba257b87b.tar.bz2 ayatana-indicator-bluetooth-5619bd36ab6119e0d8446b8a937dce2ba257b87b.zip |
Fix item disconnection
Diffstat (limited to 'src')
-rw-r--r-- | src/indicator-bluetooth-service.vala | 2 |
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); } |