mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
LibGUI+Userland: Port TabWidget set_tab_title to new string
This commit is contained in:
parent
4f08a05a3b
commit
66402b0666
6 changed files with 7 additions and 7 deletions
|
@ -572,7 +572,7 @@ void BrowserWindow::create_new_tab(URL url, bool activate)
|
|||
m_tab_widget->set_bar_visible(!is_fullscreen() && m_tab_widget->children().size() > 1);
|
||||
|
||||
new_tab.on_title_change = [this, &new_tab](auto& title) {
|
||||
m_tab_widget->set_tab_title(new_tab, title);
|
||||
m_tab_widget->set_tab_title(new_tab, String::from_deprecated_string(title).release_value_but_fixme_should_propagate_errors());
|
||||
if (m_tab_widget->active_widget() == &new_tab)
|
||||
set_window_title_for_tab(new_tab);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue