1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:08:10 +00:00

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
parent a3367cf4fa
commit f0cbaf453c
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);
}));