aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-02-15 09:08:03 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-02-15 09:08:03 +0100
commitc6dc3d1e10002bae37f77b5ce83f3286520b6251 (patch)
tree20133638136ae2d16e9b0a91761f7d4dc02ffa16
parenta924392f279798a8cf432def08aa99f1acbd0485 (diff)
parentfe15518f199556a93a0a68df37591218fc013f49 (diff)
downloadayatana-indicator-bluetooth-c6dc3d1e10002bae37f77b5ce83f3286520b6251.tar.gz
ayatana-indicator-bluetooth-c6dc3d1e10002bae37f77b5ce83f3286520b6251.tar.bz2
ayatana-indicator-bluetooth-c6dc3d1e10002bae37f77b5ce83f3286520b6251.zip
Merge branch 'tari01-pr/icon-to-bus-lomiri'
Attributes GH PR #48: https://github.com/AyatanaIndicators/ayatana-indicator-bluetooth/pull/48
-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());
}