diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/accounts-service-access.vala | 2 | ||||
-rw-r--r-- | src/volume-control-pulse.vala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/accounts-service-access.vala b/src/accounts-service-access.vala index fb15700..eebd87d 100644 --- a/src/accounts-service-access.vala +++ b/src/accounts-service-access.vala @@ -95,7 +95,7 @@ public class AccountsServiceAccess : Object Variant volume_variant = changed_properties.lookup_value ("Volume", VariantType.DOUBLE); if (volume_variant != null) { var volume = volume_variant.get_double (); - if (volume >= 0) { + if (volume >= 0 && _volume != volume) { _volume = volume; this.notify_property("volume"); } diff --git a/src/volume-control-pulse.vala b/src/volume-control-pulse.vala index 43092d1..c8a6071 100644 --- a/src/volume-control-pulse.vala +++ b/src/volume-control-pulse.vala @@ -69,7 +69,7 @@ public class VolumeControlPulse : VolumeControl _accounts_service_access = accounts_service_access; this._accounts_service_access.notify["volume"].connect(() => { - if (this._accounts_service_access.volume >= 0) { + if (this._accounts_service_access.volume >= 0 && _account_service_volume != this._accounts_service_access.volume) { _account_service_volume = this._accounts_service_access.volume; // we need to wait for this to settle. start_account_service_volume_timer(); |