1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 13:47:46 +00:00

LibGUI+Userland: Port TabWidget set_tab_title to new string

This commit is contained in:
Karol Kosek 2023-03-10 20:25:41 +01:00 committed by Andreas Kling
parent 4f08a05a3b
commit 66402b0666
6 changed files with 7 additions and 7 deletions

View file

@ -1714,7 +1714,7 @@ void HackStudioWidget::update_window_title()
void HackStudioWidget::update_current_editor_title()
{
current_editor_tab_widget().set_tab_title(current_editor_wrapper(), current_editor_wrapper().filename_title());
current_editor_tab_widget().set_tab_title(current_editor_wrapper(), String::from_deprecated_string(current_editor_wrapper().filename_title()).release_value_but_fixme_should_propagate_errors());
}
void HackStudioWidget::on_cursor_change()

View file

@ -72,7 +72,7 @@ ErrorOr<bool> ScriptEditor::save_as()
auto parent = static_cast<GUI::TabWidget*>(parent_widget());
if (parent)
parent->set_tab_title(*this, lexical_path.title());
parent->set_tab_title(*this, String::from_deprecated_string(lexical_path.title()).release_value_but_fixme_should_propagate_errors());
document().set_unmodified();
return true;