mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
Userland: Prefer non-fallible construction for LibGUI objects
This commit is contained in:
parent
a4a94de942
commit
a6f6a1afd2
54 changed files with 69 additions and 70 deletions
|
@ -221,7 +221,7 @@ ErrorOr<void> Toolbar::update_overflow_menu()
|
|||
m_overflow_action->set_enabled(true);
|
||||
m_overflow_button->set_visible(true);
|
||||
|
||||
m_overflow_menu = TRY(Menu::try_create());
|
||||
m_overflow_menu = Menu::construct();
|
||||
m_overflow_button->set_menu(m_overflow_menu);
|
||||
|
||||
for (size_t i = marginal_index.value(); i < m_items.size(); ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue