mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +00:00
LibGUI: Remove Layout::try_add_spacer()
And fall back to the infallible add_spacer(). Work towards #20557.
This commit is contained in:
parent
8322b31b97
commit
58e482a06d
22 changed files with 28 additions and 35 deletions
|
@ -159,7 +159,7 @@ ErrorOr<void> InputBox::build()
|
|||
|
||||
auto button_container = TRY(main_widget->try_add<Widget>());
|
||||
button_container->set_layout<HorizontalBoxLayout>(0, 6);
|
||||
TRY(button_container->add_spacer());
|
||||
button_container->add_spacer();
|
||||
|
||||
m_ok_button = TRY(button_container->try_add<DialogButton>("OK"_string));
|
||||
m_ok_button->on_click = [this](auto) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue