]> err.no Git - systemd/commitdiff
systemadm: don't show id in aliases field again
authorLennart Poettering <lennart@poettering.net>
Sat, 24 Apr 2010 01:18:12 +0000 (03:18 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 24 Apr 2010 01:18:12 +0000 (03:18 +0200)
systemadm.vala

index deb1be005a6958bb9350ef4e7196b83a0feaf609..5781c31d2eb8a7f934b226dc391f469b2c2383ef 100644 (file)
@@ -385,8 +385,19 @@ public class MainWindow : Window {
                 current_unit_id = unit.id;
 
                 unit_id_label.set_text_or_na(current_unit_id);
-                unit_aliases_label.set_text_or_na(string.joinv("\n", unit.names));
 
+                string a = "";
+                foreach (string i in unit.names) {
+                        if (i == current_unit_id)
+                                continue;
+
+                        if (a == "")
+                                a = i;
+                        else
+                                a += "\n" + i;
+                }
+
+                unit_aliases_label.set_text_or_na(a);
                 unit_description_label.set_text_or_na(unit.description);
                 unit_load_state_label.set_text_or_na(unit.load_state);
                 unit_active_state_label.set_text_or_na(unit.active_state);