mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
Snake+Minesweeper: Exit process when game window is closed.
This commit is contained in:
parent
57da00b731
commit
b3f7f5436a
2 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ int main(int argc, char** argv)
|
|||
GApplication app(argc, argv);
|
||||
|
||||
auto* window = new GWindow;
|
||||
window->set_should_exit_event_loop_on_close(true);
|
||||
window->set_resizable(false);
|
||||
window->set_title("Minesweeper");
|
||||
window->set_rect(100, 100, 139, 175);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue