summaryrefslogtreecommitdiff
path: root/systemadm.vala
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-24 03:18:12 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-24 03:18:12 +0200
commit2e2ca209f0242044d405cadde05da92e6dad1a6d (patch)
tree2a8cf2a0c84fdd655d755d36ffac27ecbe0be169 /systemadm.vala
parent932921b5c247f5de09f0e20208534f354f9c0fef (diff)
systemadm: don't show id in aliases field again
Diffstat (limited to 'systemadm.vala')
-rw-r--r--systemadm.vala13
1 files changed, 12 insertions, 1 deletions
diff --git a/systemadm.vala b/systemadm.vala
index deb1be005a..5781c31d2e 100644
--- a/systemadm.vala
+++ b/systemadm.vala
@@ -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);