mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:38:11 +00:00
LibGUI: Get rid of GWindow's destroy-on-close mechanism
Since we're moving to a world of ref-counting, we can't have weird behaviors like "windows delete themselves when you close them." The "close app when there are no more windows" mechanism is moved to GWindow::hide(). Now, we close the app when it has no more windows on screen.
This commit is contained in:
parent
7584480f62
commit
870bc2a4d1
3 changed files with 11 additions and 10 deletions
|
@ -53,9 +53,6 @@ public:
|
|||
Color background_color() const { return m_background_color; }
|
||||
void set_background_color(Color color) { m_background_color = color; }
|
||||
|
||||
bool should_destroy_on_close() { return m_destroy_on_close; }
|
||||
void set_should_destroy_on_close(bool b) { m_destroy_on_close = b; }
|
||||
|
||||
enum class CloseRequestDecision {
|
||||
StayOpen,
|
||||
Close,
|
||||
|
@ -167,7 +164,6 @@ private:
|
|||
Color m_background_color { Color::WarmGray };
|
||||
GWindowType m_window_type { GWindowType::Normal };
|
||||
bool m_is_active { false };
|
||||
bool m_destroy_on_close { true };
|
||||
bool m_has_alpha_channel { false };
|
||||
bool m_double_buffering_enabled { true };
|
||||
bool m_modal { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue