HackStudio: Close the debug tab when debugged program exits

This commit is contained in:
Itamar 2020-05-08 10:35:14 +03:00 committed by Andreas Kling
commit f0cbaf453c
Notes: sideshowbarker 2024-07-19 06:53:23 +09:00
2 changed files with 3 additions and 0 deletions

View file

@ -631,6 +631,8 @@ int main(int argc, char** argv)
},
[&]() {
dbg() << "Program exited";
debug_info_widget.program_stopped();
hide_action_tabs();
Core::EventLoop::main().post_event(*g_window, make<Core::DeferredInvocationEvent>([=](auto&) {
GUI::MessageBox::show("Program Exited", "Debugger", GUI::MessageBox::Type::Information, GUI::MessageBox::InputType::OK, g_window);
}));