mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 18:32:28 -05:00
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:
parent
d116fc01e8
commit
6fca2134d2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue