mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:18:14 +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
|
@ -39,7 +39,7 @@ ErrorOr<void> WizardDialog::build()
|
|||
auto nav_container_widget = TRY(main_widget->try_add<Widget>());
|
||||
nav_container_widget->set_layout<HorizontalBoxLayout>(Margins { 0, 10 }, 0);
|
||||
nav_container_widget->set_fixed_height(42);
|
||||
TRY(nav_container_widget->add_spacer());
|
||||
nav_container_widget->add_spacer();
|
||||
|
||||
m_back_button = TRY(nav_container_widget->try_add<DialogButton>("< Back"_string));
|
||||
m_back_button->on_click = [&](auto) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue