mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +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
Notes:
sideshowbarker
2024-07-17 07:38:17 +09:00
Author: https://github.com/awesomekling
Commit: 58e482a06d
Pull-request: https://github.com/SerenityOS/serenity/pull/20571
22 changed files with 28 additions and 35 deletions
|
@ -86,12 +86,12 @@ ShutdownDialog::ShutdownDialog()
|
|||
}
|
||||
}
|
||||
|
||||
right_container.add_spacer().release_value_but_fixme_should_propagate_errors();
|
||||
right_container.add_spacer();
|
||||
|
||||
auto& button_container = right_container.add<GUI::Widget>();
|
||||
button_container.set_fixed_height(23);
|
||||
button_container.set_layout<GUI::HorizontalBoxLayout>(GUI::Margins {}, 5);
|
||||
button_container.add_spacer().release_value_but_fixme_should_propagate_errors();
|
||||
button_container.add_spacer();
|
||||
auto& ok_button = button_container.add<GUI::Button>("OK"_string);
|
||||
ok_button.set_fixed_size(80, 23);
|
||||
ok_button.on_click = [this](auto) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue