mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
LibGUI: Remove TabWidget::try_add_tab()
This commit is contained in:
parent
ffda0785c0
commit
dc71ac4d2f
2 changed files with 2 additions and 12 deletions
|
@ -49,9 +49,8 @@ public:
|
|||
template<class T, class... Args>
|
||||
ErrorOr<NonnullRefPtr<T>> add_tab(String title, StringView id, Args&&... args)
|
||||
{
|
||||
auto tab = TRY(m_tab_widget->try_add_tab<T>(move(title), forward<Args>(args)...));
|
||||
TRY(m_tabs.try_set(id, tab));
|
||||
tab->set_settings_window(*this);
|
||||
auto tab = TRY(T::try_create(forward<Args>(args)...));
|
||||
TRY(add_tab(tab, title, id));
|
||||
return tab;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue