mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
Userland: Set Button text using the new String class
This commit is contained in:
parent
b5cb9a9ebb
commit
e39adc4772
49 changed files with 134 additions and 127 deletions
|
@ -289,7 +289,7 @@ void Action::set_text(DeprecatedString text)
|
|||
return;
|
||||
m_text = move(text);
|
||||
for_each_toolbar_button([&](auto& button) {
|
||||
button.set_text_deprecated(m_text);
|
||||
button.set_text(String::from_deprecated_string(m_text).release_value_but_fixme_should_propagate_errors());
|
||||
});
|
||||
for_each_menu_item([&](auto& menu_item) {
|
||||
menu_item.update_from_action({});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue