diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-02-09 00:31:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-02-09 00:31:42 +0100 |
| commit | 8d0d9866ae3e0395d899705e27b3806a5de7ef0e (patch) | |
| tree | 7ce1e5bf3c7d281486a68d83b7797659293b2039 | |
| parent | e3534f7ebdc611bc2a65bd526bd2b79a1f4179c7 (diff) | |
Add better wildcards for loading certificates and keys.
| -rw-r--r-- | src/wx/config_dialog.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/config_dialog.cc b/src/wx/config_dialog.cc index 85a96979a..2805f73cf 100644 --- a/src/wx/config_dialog.cc +++ b/src/wx/config_dialog.cc @@ -373,7 +373,7 @@ CertificateChainEditor::add_button (wxWindow* button) void CertificateChainEditor::add_certificate () { - wxFileDialog dialog(this, _("Select Certificate File")); + wxFileDialog dialog(this, _("Select Certificate file"), {}, {}, char_to_wx("PEM files (*.pem)|*.pem|KEY files (*.key)|*.key|All files (*.*)|*.*")); if (dialog.ShowModal() == wxID_OK) { try { @@ -576,7 +576,7 @@ CertificateChainEditor::update_private_key () void CertificateChainEditor::import_private_key () { - wxFileDialog dialog(this, _("Select Key File")); + wxFileDialog dialog(this, _("Select Key file"), {}, {}, char_to_wx("PEM files (*.pem)|*.pem|KEY files (*.key)|*.key|All files (*.*)|*.*")); if (dialog.ShowModal() == wxID_OK) { try { |
