diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2024-06-19 15:12:52 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2024-06-19 22:57:57 +0200 |
commit | 1a5f9e5af2ba6cd74e70f5f3fc528f7504ce1d82 (patch) | |
tree | e31b4f35c368d6ad0e53a0c98c0c1208443b3d81 /src | |
parent | 127c52ae0e2005bdd90bf133a99234ab523a20b9 (diff) | |
download | arctica-greeter-1a5f9e5af2ba6cd74e70f5f3fc528f7504ce1d82.tar.gz arctica-greeter-1a5f9e5af2ba6cd74e70f5f3fc528f7504ce1d82.tar.bz2 arctica-greeter-1a5f9e5af2ba6cd74e70f5f3fc528f7504ce1d82.zip |
src/: Exclude more code from being run in start_indicators() when in test-mode.
Diffstat (limited to 'src')
-rw-r--r-- | src/arctica-greeter.vala | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala index 02a3c37..a30a8e3 100644 --- a/src/arctica-greeter.vala +++ b/src/arctica-greeter.vala @@ -969,23 +969,23 @@ public class ArcticaGreeter : Object public void start_indicators () { - var indicator_list = AGSettings.get_strv(AGSettings.KEY_INDICATORS); - - var update_indicator_list = false; - for (var i = 0; i < indicator_list.length; i++) + if (!test_mode) { - if (indicator_list[i] == "ug-keyboard") + var indicator_list = AGSettings.get_strv(AGSettings.KEY_INDICATORS); + + var update_indicator_list = false; + for (var i = 0; i < indicator_list.length; i++) { - indicator_list[i] = "org.ayatana.indicator.keyboard"; - update_indicator_list = true; + if (indicator_list[i] == "ug-keyboard") + { + indicator_list[i] = "org.ayatana.indicator.keyboard"; + update_indicator_list = true; + } } - } - if (update_indicator_list) - AGSettings.set_strv(AGSettings.KEY_INDICATORS, indicator_list); + if (update_indicator_list) + AGSettings.set_strv(AGSettings.KEY_INDICATORS, indicator_list); - if (!test_mode) - { var indicator_service = ""; foreach (unowned string indicator in indicator_list) { |