1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:08:12 +00:00

Spider: Use YesNo dialog for user confirmation when closing

Cancel was superflous, and provided no difference to No.
This commit is contained in:
Jamie Mansfield 2021-08-05 20:54:45 +01:00 committed by Andreas Kling
parent c3c1a9ca1d
commit 705e91d332

View file

@ -225,7 +225,7 @@ int main(int argc, char** argv)
"A game is still in progress, are you sure you would like to quit? Doing so will count as a loss.",
"Game in progress",
GUI::MessageBox::Type::Warning,
GUI::MessageBox::InputType::YesNoCancel);
GUI::MessageBox::InputType::YesNo);
if (result == GUI::MessageBox::ExecYes)
return GUI::Window::CloseRequestDecision::Close;