From c4249717f87d94b75ad7fa871126b42aa3be6d16 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Tue, 8 Jan 2013 15:46:40 +1300 Subject: Fix reversed logic on visible menu item --- src/indicator-bluetooth-service.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/indicator-bluetooth-service.vala') diff --git a/src/indicator-bluetooth-service.vala b/src/indicator-bluetooth-service.vala index 0ae813e..ee8dd2a 100644 --- a/src/indicator-bluetooth-service.vala +++ b/src/indicator-bluetooth-service.vala @@ -76,7 +76,7 @@ public class BluetoothIndicator { if (updating_visible) return; - client.set ("default-adapter-discoverable", visible_item.property_get_int (Dbusmenu.MENUITEM_PROP_TOGGLE_STATE) == Dbusmenu.MENUITEM_TOGGLE_STATE_CHECKED); + client.set ("default-adapter-discoverable", visible_item.property_get_int (Dbusmenu.MENUITEM_PROP_TOGGLE_STATE) != Dbusmenu.MENUITEM_TOGGLE_STATE_CHECKED); }); menu.child_append (visible_item); -- cgit v1.2.3