aboutsummaryrefslogtreecommitdiff
path: root/src/options-gsettings.vala
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-11-17 13:24:12 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-11-17 13:24:12 +0100
commit7b42e44ab6c32acba50a39d89e18e15d8507582c (patch)
treea603306b2a6ba80ca8053e48b18deccc1ee37cf5 /src/options-gsettings.vala
parent425c531ba241415514743f7cc6dae8c17683cb9f (diff)
parent88e440bb1689063c6d47ac7a4965eb597a8ec9cb (diff)
downloadayatana-indicator-sound-7b42e44ab6c32acba50a39d89e18e15d8507582c.tar.gz
ayatana-indicator-sound-7b42e44ab6c32acba50a39d89e18e15d8507582c.tar.bz2
ayatana-indicator-sound-7b42e44ab6c32acba50a39d89e18e15d8507582c.zip
Merge branch 'tari01-pr/refactor-schema-detection'
Attributes GH PR #66: https://github.com/AyatanaIndicators/ayatana-indicator-sound/pull/66
Diffstat (limited to 'src/options-gsettings.vala')
-rw-r--r--src/options-gsettings.vala6
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;