1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

Browser: Use reorderable tabs

This commit is contained in:
Peter Elliott 2021-10-07 02:12:14 -06:00 committed by Andreas Kling
parent e1684860a3
commit da804d95f7

View file

@ -61,6 +61,7 @@ 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) {