mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:27:45 +00:00
LibIMAP+Mail: Propagate errors from LibIMAP and MailWidget
This lets us bubble up errors from `LibIMAP::Client::send_command()`, which can happen if the connection hangs or is taking a long time, and the user closes Mail.
This commit is contained in:
parent
fc54bd03f9
commit
6128e859ac
6 changed files with 90 additions and 89 deletions
|
@ -19,7 +19,7 @@ class MailWidget final : public GUI::Widget {
|
|||
public:
|
||||
virtual ~MailWidget() override = default;
|
||||
|
||||
bool connect_and_login();
|
||||
ErrorOr<bool> connect_and_login();
|
||||
|
||||
void on_window_close();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue