[seahorse] gkr: Display custom labels for network passwords
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] gkr: Display custom labels for network passwords
- Date: Sat, 21 May 2022 14:37:52 +0000 (UTC)
commit 1d184982895c4667bdaf755490e5efe330047817
Author: Wang Bing-hua <louiswpf gmail com>
Date: Tue Dec 21 22:36:58 2021 +0800
gkr: Display custom labels for network passwords
Logically is_custom_network_label() should return false if the generated
name matches the custom label.
The comment also says, "We simulate that generating here and return
FALSE if it matches."
Fix the return value to display custom labels for network passwords.
Fixes: 7b202f99b4f6 ("gkr: Port the gnome-keyring/libsecret stuff to vala")
gkr/gkr-item-info.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gkr/gkr-item-info.vala b/gkr/gkr-item-info.vala
index 1e6324a8..2e772913 100644
--- a/gkr/gkr-item-info.vala
+++ b/gkr/gkr-item-info.vala
@@ -198,7 +198,7 @@ public class GkrNetworkPassInfo : ItemInfo {
if (object != null)
generated.append_printf ("/%s", object);
- return (generated.str == label);
+ return (generated.str != label);
}
private string? calc_network_label(HashTable<string, string>? attrs,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]