aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Gripsgard <marius@ubports.com>2024-12-21 14:19:41 +0000
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-12-21 22:58:54 +0100
commit6f2625bd7702488c30b8895f6a54a10ad4aed8bc (patch)
tree47ff25db01b2afa8ae22d8443b24d8110658c99e
parent3311762563992fecb602ec2f7318a80d558a5e9e (diff)
downloadayatana-indicator-sound-6f2625bd7702488c30b8895f6a54a10ad4aed8bc.tar.gz
ayatana-indicator-sound-6f2625bd7702488c30b8895f6a54a10ad4aed8bc.tar.bz2
ayatana-indicator-sound-6f2625bd7702488c30b8895f6a54a10ad4aed8bc.zip
info-notification: Check for server caps continuously
As at the time of init this might not be present, or this might dynamicly change after init.
-rwxr-xr-xsrc/info-notification.vala4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/info-notification.vala b/src/info-notification.vala
index 3915ebb..867d197 100755
--- a/src/info-notification.vala
+++ b/src/info-notification.vala
@@ -25,12 +25,10 @@ public class IndicatorSound.InfoNotification: Notification
{
private string sReaderSchema = "org.gnome.desktop.a11y.applications";
private string sReaderKey = "screen-reader-enabled";
- private bool bHints = false;
protected override Notify.Notification create_notification ()
{
string sUser = GLib.Environment.get_user_name ();
- this.bHints = notify_server_supports ("x-lomiri-private-synchronous");
if (sUser == "lightdm")
{
@@ -57,7 +55,7 @@ public class IndicatorSound.InfoNotification: Notification
int32 nValue = ((int32)((volume * 100.0) + 0.5)).clamp(0, 100);
- if (!this.bHints)
+ if (!notify_server_supports ("x-lomiri-private-synchronous"))
{
volume_label += "\n";
SettingsSchemaSource pSource = SettingsSchemaSource.get_default ();