Qt: Ensure debugger is attached to a starting core when opening scripting (fixes #3471)

This commit is contained in:
Vicki Pfau 2025-06-02 02:24:11 -07:00
parent e4be21c003
commit 645001e9ce
1 changed files with 2 additions and 0 deletions

View File

@ -86,6 +86,8 @@ void ScriptingController::setController(std::shared_ptr<CoreController> controll
m_controller->thread()->scriptContext = &m_scriptContext;
if (m_controller->hasStarted()) {
attach();
} else {
m_controller->attachDebugger(false);
}
updateVideoScale();
connect(m_controller.get(), &CoreController::stopping, this, &ScriptingController::clearController);