diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-02 10:11:34 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-02 10:13:35 +0200 |
commit | de7f1bfd58c13decf1bd3957468520f301189292 (patch) | |
tree | 4d5c106347c2c59de12ccf3810e4255ff86c4f15 | |
parent | 1f51b72e6d6c6f4f8ef6fbcbfb6288de3ae82e62 (diff) | |
download | serenity-de7f1bfd58c13decf1bd3957468520f301189292.zip |
Mail: Use GUI::PasswordInputDialog to ask for server passwords
-rw-r--r-- | Userland/Applications/Mail/MailWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/Mail/MailWidget.cpp b/Userland/Applications/Mail/MailWidget.cpp index e830a15695..566025c30c 100644 --- a/Userland/Applications/Mail/MailWidget.cpp +++ b/Userland/Applications/Mail/MailWidget.cpp @@ -11,9 +11,9 @@ #include <LibDesktop/Launcher.h> #include <LibGUI/Action.h> #include <LibGUI/Clipboard.h> -#include <LibGUI/InputBox.h> #include <LibGUI/Menu.h> #include <LibGUI/MessageBox.h> +#include <LibGUI/PasswordInputDialog.h> #include <LibGUI/Statusbar.h> #include <LibGUI/TableView.h> #include <LibGUI/TreeView.h> @@ -120,7 +120,7 @@ bool MailWidget::connect_and_login() auto password = config->read_entry("User", "Password", {}); while (password.is_empty()) { - if (GUI::InputBox::show(window(), password, String::formatted("Enter password for {}:", username), "Login", {}, GUI::InputType::Password) != GUI::InputBox::ExecOK) + if (GUI::PasswordInputDialog::show(window(), password, "Login", server, username) != GUI::Dialog::ExecOK) return false; } |