mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +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
|
@ -295,7 +295,7 @@ ErrorOr<GUI::Widget*> GradientTool::get_properties_widget()
|
|||
auto button_container = TRY(properties_widget->try_add<GUI::Widget>());
|
||||
button_container->set_fixed_height(22);
|
||||
button_container->set_layout<GUI::HorizontalBoxLayout>();
|
||||
button_container->add_spacer().release_value_but_fixme_should_propagate_errors();
|
||||
button_container->add_spacer();
|
||||
|
||||
auto apply_button = TRY(button_container->try_add<GUI::DialogButton>("Apply"_string));
|
||||
apply_button->on_click = [this](auto) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue