mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
LibGUI+Userland: Make Dialog::ExecResult an enum class
This commit is contained in:
parent
1f82beded3
commit
cdffe556c8
Notes:
sideshowbarker
2024-07-17 10:55:07 +09:00
Author: https://github.com/AtkinsSJ
Commit: cdffe556c8
Pull-request: https://github.com/SerenityOS/serenity/pull/14021
Reviewed-by: https://github.com/linusg ✅
90 changed files with 232 additions and 232 deletions
|
@ -59,20 +59,20 @@ EditGuideDialog::EditGuideDialog(GUI::Window* parent_window, String const& offse
|
|||
} else if (m_is_horizontal_checked) {
|
||||
m_orientation = Guide::Orientation::Horizontal;
|
||||
} else {
|
||||
done(ExecResult::ExecAborted);
|
||||
done(ExecResult::Aborted);
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_offset_text_box->text().is_empty())
|
||||
done(ExecResult::ExecAborted);
|
||||
done(ExecResult::Aborted);
|
||||
|
||||
m_offset = m_offset_text_box->text();
|
||||
|
||||
done(ExecResult::ExecOK);
|
||||
done(ExecResult::OK);
|
||||
};
|
||||
|
||||
cancel_button->on_click = [this](auto) {
|
||||
done(ExecResult::ExecCancel);
|
||||
done(ExecResult::Cancel);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue