[libnma/main] cert-chooser: do not show "Show Passwords" with no password entry
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libnma/main] cert-chooser: do not show "Show Passwords" with no password entry
- Date: Tue, 18 Jan 2022 17:57:42 +0000 (UTC)
commit ee3fb9197d1cb6a8a32976af14adaf5acc9f37a5
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Mon Jan 17 10:29:37 2022 +0100
cert-chooser: do not show "Show Passwords" with no password entry
If we want a certificate only (as opposed to a key) in PEM file, we don't
ask for any passwords and therefore don't need the "Show Passwords"
checkbox.
https://gitlab.gnome.org/GNOME/libnma/-/merge_requests/19
src/nma-cert-chooser.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/nma-cert-chooser.c b/src/nma-cert-chooser.c
index 8eec3301..ca4f336f 100644
--- a/src/nma-cert-chooser.c
+++ b/src/nma-cert-chooser.c
@@ -929,6 +929,8 @@ constructed (GObject *object)
if (priv->flags & NMA_CERT_CHOOSER_FLAG_PEM) {
gtk_widget_hide (priv->cert_password);
gtk_widget_hide (priv->cert_password_label);
+ if (priv->flags & NMA_CERT_CHOOSER_FLAG_CERT)
+ gtk_widget_hide (priv->show_password);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]