diff options
author | Robert Tari <robert@tari.in> | 2021-11-11 00:10:38 +0100 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-11-15 04:40:51 +0100 |
commit | 88e440bb1689063c6d47ac7a4965eb597a8ec9cb (patch) | |
tree | a603306b2a6ba80ca8053e48b18deccc1ee37cf5 /src/options-gsettings.vala | |
parent | 425c531ba241415514743f7cc6dae8c17683cb9f (diff) | |
download | ayatana-indicator-sound-88e440bb1689063c6d47ac7a4965eb597a8ec9cb.tar.gz ayatana-indicator-sound-88e440bb1689063c6d47ac7a4965eb597a8ec9cb.tar.bz2 ayatana-indicator-sound-88e440bb1689063c6d47ac7a4965eb597a8ec9cb.zip |
Clean up schema detection and conditional code
Diffstat (limited to 'src/options-gsettings.vala')
-rw-r--r-- | src/options-gsettings.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/options-gsettings.vala b/src/options-gsettings.vala index 17e07c6..48df2fe 100644 --- a/src/options-gsettings.vala +++ b/src/options-gsettings.vala @@ -33,7 +33,7 @@ public class IndicatorSound.OptionsGSettings : Options } private Settings _settings = new Settings ("org.ayatana.indicator.sound"); -#if HAS_LOMIRI_SOUND_SCHEMA +#if HAS_LOMIRI_SCHEMAS private Settings _shared_settings = new Settings ("com.lomiri.sound"); #endif /** MAX VOLUME PROPERTY **/ @@ -45,7 +45,7 @@ public class IndicatorSound.OptionsGSettings : Options private void init_max_volume() { _settings.changed[NORMAL_dB_KEY].connect(() => update_max_volume()); _settings.changed[AMP_dB_KEY].connect(() => update_max_volume()); -#if HAS_LOMIRI_SOUND_SCHEMA +#if HAS_LOMIRI_SCHEMAS _shared_settings.changed[ALLOW_AMP_KEY].connect(() => update_max_volume()); #endif update_max_volume(); @@ -60,7 +60,7 @@ public class IndicatorSound.OptionsGSettings : Options } } private double calculate_max_volume () { -#if HAS_LOMIRI_SOUND_SCHEMA +#if HAS_LOMIRI_SCHEMAS unowned string decibel_key = _shared_settings.get_boolean(ALLOW_AMP_KEY) ? AMP_dB_KEY : NORMAL_dB_KEY; |