[seahorse/wip/nielsdg/cleanup-gkr-labels: 1/2] gkr: Strip verbose "Network secret for " prefix
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse/wip/nielsdg/cleanup-gkr-labels: 1/2] gkr: Strip verbose "Network secret for " prefix
- Date: Sun, 16 Feb 2020 23:34:46 +0000 (UTC)
commit c7c3e69c1ba57af3de50a83ddaf93e9d8359eec2
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sun Feb 16 15:37:11 2020 +0100
gkr: Strip verbose "Network secret for " prefix
We already tell the user this is a network secret in the description, so
let's remove this redundancy from the label.
gkr/gkr-item-info.vala | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gkr/gkr-item-info.vala b/gkr/gkr-item-info.vala
index 31e291f8..1eb64308 100644
--- a/gkr/gkr-item-info.vala
+++ b/gkr/gkr-item-info.vala
@@ -90,6 +90,11 @@ public class NmConnectionInfo : ItemInfo {
this.icon = new ThemedIcon("network-wireless-symbolic");
this.description = _("Wi-Fi password");
}
+
+ // TODO: are we sure this isn't translated by NM?
+ if (label.has_prefix("Network secret for ")) {
+ this.label = this.label.substring("Network secret for ".length);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]