mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
Games: Wrong parent window passed to GUI::MessageBox
We were passing the wrong parent window to GUI::MessageBox making it impossible to exit the message window.
This commit is contained in:
parent
2a9128efe3
commit
67300af248
2 changed files with 3 additions and 3 deletions
|
@ -84,7 +84,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
Config::write_string("Hearts"sv, ""sv, "player_name"sv, player_name);
|
||||
|
||||
GUI::MessageBox::show(window, "Settings have been successfully saved and will take effect in the next game."sv, "Settings Changed Successfully"sv, GUI::MessageBox::Type::Information);
|
||||
GUI::MessageBox::show(settings_dialog, "Settings have been successfully saved and will take effect in the next game."sv, "Settings Changed Successfully"sv, GUI::MessageBox::Type::Information);
|
||||
};
|
||||
|
||||
auto game_menu = TRY(window->try_add_menu("&Game"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue