From fe15518f199556a93a0a68df37591218fc013f49 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Tue, 14 Feb 2023 15:04:34 +0100 Subject: 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 --- src/profile.vala | 6 +++--- 1 file 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()); } -- cgit v1.2.3