mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
Userland: Use non-fallible EventReceiver::add()
where possible
This commit is contained in:
parent
707ca984bd
commit
b4e134cb52
54 changed files with 934 additions and 934 deletions
|
@ -1190,7 +1190,7 @@ ErrorOr<void> MainWidget::initialize_menubar(GUI::Window& window)
|
|||
toolbar.add_action(*m_zoom_out_action);
|
||||
toolbar.add_action(*m_reset_zoom_action);
|
||||
|
||||
m_zoom_combobox = TRY(toolbar.try_add<GUI::ComboBox>());
|
||||
m_zoom_combobox = toolbar.add<GUI::ComboBox>();
|
||||
m_zoom_combobox->set_max_width(75);
|
||||
m_zoom_combobox->set_model(*GUI::ItemListModel<DeprecatedString>::create(s_suggested_zoom_levels));
|
||||
m_zoom_combobox->on_change = [this](DeprecatedString const& value, GUI::ModelIndex const& index) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue