1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:18: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:
Andreas Kling 2019-07-23 18:20:00 +02:00
parent fbae03b737
commit 72a3f69df7
19 changed files with 8 additions and 27 deletions

View file

@ -16,12 +16,12 @@
* [ ] handle fire bitmap edges better
*/
#include <LibDraw/GraphicsBitmap.h>
#include <LibGUI/GApplication.h>
#include <LibGUI/GLabel.h>
#include <LibGUI/GPainter.h>
#include <LibGUI/GWidget.h>
#include <LibGUI/GWindow.h>
#include <LibDraw/GraphicsBitmap.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
@ -214,7 +214,6 @@ 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("Fire");
window->set_resizable(false);