Mail: Fix mail settings not opening after prompt to configure

If the extra "/bin/MailSettings" argument is passed to
Desktop::Launcher::open() it then is passed as an argument to
MailSettings. This then causes the args parsing to fail leading to
the settings not opening.
This commit is contained in:
MacDue 2022-06-06 14:39:17 +01:00 committed by Linus Groh
parent d116fc01e8
commit 6fca2134d2

View file

@ -103,7 +103,7 @@ bool MailWidget::connect_and_login()
if (server.is_empty()) {
auto result = GUI::MessageBox::show(window(), "Mail has no servers configured. Do you want configure them now?", "Error", GUI::MessageBox::Type::Error, GUI::MessageBox::InputType::YesNo);
if (result == GUI::MessageBox::ExecResult::Yes)
Desktop::Launcher::open(URL::create_with_file_protocol("/bin/MailSettings"), "/bin/MailSettings");
Desktop::Launcher::open(URL::create_with_file_protocol("/bin/MailSettings"));
return false;
}