diff --git a/ui/ui.cpp b/ui/ui.cpp index a86dbab..ce74b47 100644 --- a/ui/ui.cpp +++ b/ui/ui.cpp @@ -540,7 +540,7 @@ void GlobalDebuggerUI::SetupMenu(UIContext* context) if (!controller) return; - controller->Restart(); + std::thread([=]() { controller->Restart(); }).detach(); }, connected)); debuggerMenu->addAction("Restart", "Launch");