From deabc7e13bc7a037350fab8bf9cc22a02ebc8f09 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 24 Oct 2019 22:28:02 +0200 Subject: [PATCH] HackStudio: Bring up the console when doing a "build" or "run" We most likely want to see what comes out on the console when starting one of these actions. --- DevTools/HackStudio/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DevTools/HackStudio/main.cpp b/DevTools/HackStudio/main.cpp index 77bbd53d31..cd0486a5e2 100644 --- a/DevTools/HackStudio/main.cpp +++ b/DevTools/HackStudio/main.cpp @@ -142,11 +142,13 @@ int main(int argc, char** argv) menubar->add_menu(move(edit_menu)); auto build_action = GAction::create("Build", { Mod_Ctrl, Key_B }, GraphicsBitmap::load_from_file("/res/icons/16x16/build.png"), [&](auto&) { + tab_widget->set_active_widget(terminal_wrapper); build(terminal_wrapper); }); toolbar->add_action(build_action); auto run_action = GAction::create("Run", { Mod_Ctrl, Key_R }, GraphicsBitmap::load_from_file("/res/icons/16x16/run.png"), [&](auto&) { + tab_widget->set_active_widget(terminal_wrapper); run(terminal_wrapper); }); toolbar->add_action(run_action);