aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arctica-greeter.vala24
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)
{