aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2013-01-08 15:46:40 +1300
committerRobert Ancell <robert.ancell@canonical.com>2013-01-08 15:46:40 +1300
commitc4249717f87d94b75ad7fa871126b42aa3be6d16 (patch)
tree65deab8769605fe4676a6dab56f521c40cdd5d40 /src
parent9a8b4ffb80e10432a010debc3970236cee1dc77c (diff)
downloadayatana-indicator-bluetooth-c4249717f87d94b75ad7fa871126b42aa3be6d16.tar.gz
ayatana-indicator-bluetooth-c4249717f87d94b75ad7fa871126b42aa3be6d16.tar.bz2
ayatana-indicator-bluetooth-c4249717f87d94b75ad7fa871126b42aa3be6d16.zip
Fix reversed logic on visible menu item
Diffstat (limited to 'src')
-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 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);