mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibGUI: Remove Menu::try_add_separator()
And fall back to the infallible add_separator().
This commit is contained in:
@@ -258,7 +258,7 @@ ErrorOr<void> Toolbar::update_overflow_menu()
|
||||
TRY(m_overflow_menu->try_add_action(*item->action));
|
||||
}
|
||||
if (item->action && peek_item->type == Item::Type::Separator)
|
||||
TRY(m_overflow_menu->try_add_separator());
|
||||
m_overflow_menu->add_separator();
|
||||
}
|
||||
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user