mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
LibGUI+Userland: Port StatusBar::text() and set_text functions to String
This commit is contained in:
parent
2064f544c6
commit
2029750519
27 changed files with 88 additions and 88 deletions
|
@ -130,9 +130,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
game.on_message = [&](auto message) {
|
||||
if (!message.has_value())
|
||||
statusbar.set_text("");
|
||||
statusbar.set_text({});
|
||||
else
|
||||
statusbar.set_text(*message);
|
||||
statusbar.set_text(String::from_utf8(*message).release_value_but_fixme_should_propagate_errors());
|
||||
};
|
||||
|
||||
window->show();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue