mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Userland: Set tab-widget properties in GML instead of code
This commit is contained in:
committed by
Andreas Kling
parent
24a8a260c0
commit
84b98da259
@@ -74,9 +74,6 @@ BrowserWindow::BrowserWindow(CookieJar& cookie_jar, URL url)
|
||||
auto& top_line = *widget.find_descendant_of_type_named<GUI::HorizontalSeparator>("top_line");
|
||||
|
||||
m_tab_widget = *widget.find_descendant_of_type_named<GUI::TabWidget>("tab_widget");
|
||||
m_tab_widget->set_reorder_allowed(true);
|
||||
m_tab_widget->set_close_button_enabled(true);
|
||||
|
||||
m_tab_widget->on_tab_count_change = [&top_line](size_t tab_count) {
|
||||
top_line.set_visible(tab_count > 1);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user