| 2394 | } |
| 2395 | |
| 2396 | void DebuggerPlugin::setUIDebuggingState( StatusDebuggerController::State state ) { |
| 2397 | if ( isShuttingDown() ) |
| 2398 | return; |
| 2399 | mDebuggingState = state; |
| 2400 | |
| 2401 | auto ctrl = getStatusDebuggerController(); |
| 2402 | if ( ctrl ) { |
| 2403 | ctrl->setDebuggingState( state ); |
| 2404 | } |
| 2405 | |
| 2406 | if ( mPanelBoxButtons.box ) { |
| 2407 | if ( Engine::isMainThread() ) |
| 2408 | updatePanelUIState( state ); |
| 2409 | else |
| 2410 | mPanelBoxButtons.box->runOnMainThread( [this, state] { updatePanelUIState( state ); } ); |
| 2411 | } |
| 2412 | |
| 2413 | if ( state == StatusDebuggerController::State::NotStarted || |
| 2414 | state == StatusDebuggerController::State::Running ) { |
| 2415 | resetExpressions(); |
| 2416 | } |
| 2417 | } |
| 2418 | |
| 2419 | void DebuggerPlugin::displayTooltip( UICodeEditor* editor, const std::string& expression, |
| 2420 | const EvaluateInfo& info, const Vector2f& position ) { |
no test coverage detected