mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +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
Notes:
sideshowbarker
2024-07-19 12:01:21 +09:00
Author: https://github.com/awesomekling
Commit: 870bc2a4d1
3 changed files with 11 additions and 10 deletions
|
@ -31,7 +31,6 @@ GComboBox::GComboBox(GWidget* parent)
|
|||
m_list_window = GWindow::construct(this);
|
||||
// FIXME: This is obviously not a tooltip window, but it's the closest thing to what we want atm.
|
||||
m_list_window->set_window_type(GWindowType::Tooltip);
|
||||
m_list_window->set_should_destroy_on_close(false);
|
||||
|
||||
m_list_view = GListView::construct(nullptr);
|
||||
m_list_view->horizontal_scrollbar().set_visible(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue