aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2023-02-14 15:04:34 +0100
committerRobert Tari <robert@tari.in>2023-02-14 15:04:34 +0100
commitfe15518f199556a93a0a68df37591218fc013f49 (patch)
tree20133638136ae2d16e9b0a91761f7d4dc02ffa16 /src
parenta924392f279798a8cf432def08aa99f1acbd0485 (diff)
downloadayatana-indicator-bluetooth-fe15518f199556a93a0a68df37591218fc013f49.tar.gz
ayatana-indicator-bluetooth-fe15518f199556a93a0a68df37591218fc013f49.tar.bz2
ayatana-indicator-bluetooth-fe15518f199556a93a0a68df37591218fc013f49.zip
src/profile.vala: Send all menu root properties to D-Bus on Lomiri regardless of the Bluetooth state
fixes https://gitlab.com/ubports/development/core/packaging/ayatana-indicators/ayatana-indicator-bluetooth/-/issues/2
Diffstat (limited to 'src')
-rw-r--r--src/profile.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/profile.vala b/src/profile.vala
index be7863e..a56b764 100644
--- a/src/profile.vala
+++ b/src/profile.vala
@@ -1,6 +1,6 @@
/*
* Copyright 2013 Canonical Ltd.
- * Copyright 2022 Robert Tari
+ * Copyright 2022-2023 Robert Tari
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -169,10 +169,10 @@ class Profile: Object
var icon = new ThemedIcon.with_default_fallbacks (icon_name);
var builder = new VariantBuilder (new VariantType ("a{sv}"));
builder.add ("{sv}", "visible", new Variant.boolean (visible));
+ builder.add ("{sv}", "accessible-desc", new Variant.string (a11y));
- if (bluetooth.supported && visible)
+ if (AyatanaCommon.utils_is_lomiri () || (bluetooth.supported && visible))
{
- builder.add ("{sv}", "accessible-desc", new Variant.string (a11y));
builder.add ("{sv}", "icon", icon.serialize());
}