mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
HackStudio+LibGUI: Make fallible TabWidget::add_tab()
non-fallible
This commit is contained in:
parent
dc71ac4d2f
commit
499f459f0b
Notes:
sideshowbarker
2024-07-17 23:07:41 +09:00
Author: https://github.com/tcl3
Commit: 499f459f0b
Pull-request: https://github.com/SerenityOS/serenity/pull/21067
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/shannonbooth ✅
2 changed files with 3 additions and 4 deletions
|
@ -1346,7 +1346,7 @@ ErrorOr<void> HackStudioWidget::create_action_tab(GUI::Widget& parent)
|
|||
m_todo_entries_widget = m_action_tab_widget->add_tab<ToDoEntriesWidget>("TODO"_string);
|
||||
m_terminal_wrapper = m_action_tab_widget->add_tab<TerminalWrapper>("Console"_string, false);
|
||||
auto debug_info_widget = TRY(DebugInfoWidget::create());
|
||||
TRY(m_action_tab_widget->add_tab(debug_info_widget, "Debug"_string));
|
||||
m_action_tab_widget->add_tab(debug_info_widget, "Debug"_string);
|
||||
m_debug_info_widget = debug_info_widget;
|
||||
|
||||
m_debug_info_widget->on_backtrace_frame_selection = [this](Debug::DebugInfo::SourcePosition const& source_position) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue