Explorar o código

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.
MacDue %!s(int64=3) %!d(string=hai) anos
pai
achega
6fca2134d2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Userland/Applications/Mail/MailWidget.cpp

+ 1 - 1
Userland/Applications/Mail/MailWidget.cpp

@@ -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;
     }