mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +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
|
@ -104,9 +104,6 @@ public:
|
|||
GWidget* automatic_cursor_tracking_widget() { return m_automatic_cursor_tracking_widget.ptr(); }
|
||||
const GWidget* automatic_cursor_tracking_widget() const { return m_automatic_cursor_tracking_widget.ptr(); }
|
||||
|
||||
bool should_exit_event_loop_on_close() const { return m_should_exit_app_on_close; }
|
||||
void set_should_exit_event_loop_on_close(bool b) { m_should_exit_app_on_close = b; }
|
||||
|
||||
GWidget* hovered_widget() { return m_hovered_widget.ptr(); }
|
||||
const GWidget* hovered_widget() const { return m_hovered_widget.ptr(); }
|
||||
void set_hovered_widget(GWidget*);
|
||||
|
@ -160,7 +157,6 @@ private:
|
|||
Color m_background_color { Color::WarmGray };
|
||||
GWindowType m_window_type { GWindowType::Normal };
|
||||
bool m_is_active { false };
|
||||
bool m_should_exit_app_on_close { false };
|
||||
bool m_destroy_on_close { true };
|
||||
bool m_has_alpha_channel { false };
|
||||
bool m_double_buffering_enabled { true };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue