diff options
author | Robert Tari <robert@tari.in> | 2023-11-08 17:03:13 +0100 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2023-11-10 12:31:31 +0100 |
commit | bd14f03770f218803a3fd41676b4e75f406c4b77 (patch) | |
tree | 341d4155a49c2c659c6c3835fbcc3d522a475c2b /src/volume-control-pulse.vala | |
parent | c4825f9ee389b32a9381be6106977870a963561c (diff) | |
download | ayatana-indicator-sound-bd14f03770f218803a3fd41676b4e75f406c4b77.tar.gz ayatana-indicator-sound-bd14f03770f218803a3fd41676b4e75f406c4b77.tar.bz2 ayatana-indicator-sound-bd14f03770f218803a3fd41676b4e75f406c4b77.zip |
Fix AccountsService integration
Diffstat (limited to 'src/volume-control-pulse.vala')
-rw-r--r-- | src/volume-control-pulse.vala | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/volume-control-pulse.vala b/src/volume-control-pulse.vala index 706b0fe..460b098 100644 --- a/src/volume-control-pulse.vala +++ b/src/volume-control-pulse.vala @@ -1,6 +1,6 @@ /* * Copyright 2013 Canonical Ltd. - * Copyright 2021 Robert Tari + * Copyright 2021-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 @@ -78,6 +78,16 @@ public class VolumeControlPulse : VolumeControl start_account_service_volume_timer(); } }); + + this._accounts_service_access.notify["mute"].connect(() => { + + if (_mute != this._accounts_service_access.mute) + { + set_mute_internal (this._accounts_service_access.mute); + start_account_service_volume_timer(); + } + }); + this.reconnect_to_pulse (); } |