mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +00:00
LibGUI+Userland: Make Dialog::ExecResult an enum class
This commit is contained in:
parent
1f82beded3
commit
cdffe556c8
90 changed files with 232 additions and 232 deletions
|
@ -99,7 +99,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto change_settings = [&] {
|
||||
auto size_dialog = GameSizeDialog::construct(window, board_size, target_tile, evil_ai);
|
||||
if (size_dialog->exec() || size_dialog->result() != GUI::Dialog::ExecOK)
|
||||
if (size_dialog->exec() != GUI::Dialog::ExecResult::OK)
|
||||
return;
|
||||
|
||||
board_size = size_dialog->board_size();
|
||||
|
@ -152,7 +152,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
"Congratulations!",
|
||||
GUI::MessageBox::Type::Question,
|
||||
GUI::MessageBox::InputType::YesNo);
|
||||
if (want_to_continue == GUI::MessageBox::ExecYes)
|
||||
if (want_to_continue == GUI::MessageBox::ExecResult::Yes)
|
||||
game.set_want_to_continue();
|
||||
else
|
||||
start_a_new_game();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue