mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
HackStudio: Scroll embedded terminals to bottom upon command execution
It was kinda annoying that you had to scroll down manually every time you started a new build while looking at some error in the scrollback.
This commit is contained in:
@@ -505,10 +505,10 @@ NonnullRefPtr<GUI::Action> HackStudioWidget::create_add_terminal_action()
|
||||
return GUI::Action::create("Add new Terminal", { Mod_Ctrl | Mod_Alt, Key_T },
|
||||
Gfx::Bitmap::load_from_file("/res/icons/16x16/app-terminal.png"),
|
||||
[this](auto&) {
|
||||
auto& terminal = m_action_tab_widget->add_tab<TerminalWrapper>("Terminal");
|
||||
reveal_action_tab(terminal);
|
||||
auto& terminal_wrapper = m_action_tab_widget->add_tab<TerminalWrapper>("Terminal");
|
||||
reveal_action_tab(terminal_wrapper);
|
||||
update_actions();
|
||||
terminal.terminal()->set_focus(true);
|
||||
terminal_wrapper.terminal().set_focus(true);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user