mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00
LibGUI: Get rid of GWindow::should_exit_event_loop_on_close().
This behavior and API was extremely counter-intuitive since our default behavior was for applications to never exit after you close all of their windows. Now that we exit the event loop by default when the very last GWindow is deleted, we don't have to worry about this.
This commit is contained in:
parent
fbae03b737
commit
72a3f69df7
19 changed files with 8 additions and 27 deletions
|
@ -12,7 +12,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_double_buffering_enabled(false);
|
||||
window->set_title("Snake");
|
||||
window->set_rect(100, 100, 320, 320);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue