mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 11:09:18 +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:
parent
c3c1a9ca1d
commit
705e91d332
Notes:
sideshowbarker
2024-07-18 07:25:25 +09:00
Author: https://github.com/jamierocks
Commit: 705e91d332
Pull-request: https://github.com/SerenityOS/serenity/pull/9223
Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 1 deletions
|
@ -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.",
|
"A game is still in progress, are you sure you would like to quit? Doing so will count as a loss.",
|
||||||
"Game in progress",
|
"Game in progress",
|
||||||
GUI::MessageBox::Type::Warning,
|
GUI::MessageBox::Type::Warning,
|
||||||
GUI::MessageBox::InputType::YesNoCancel);
|
GUI::MessageBox::InputType::YesNo);
|
||||||
|
|
||||||
if (result == GUI::MessageBox::ExecYes)
|
if (result == GUI::MessageBox::ExecYes)
|
||||||
return GUI::Window::CloseRequestDecision::Close;
|
return GUI::Window::CloseRequestDecision::Close;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue