Prevented unnecessary refreshing in Insight window on target reset and resumed events.
This commit is contained in:
@@ -117,8 +117,10 @@ namespace Bloom
|
|||||||
}
|
}
|
||||||
|
|
||||||
void InsightWorker::onTargetResumedEvent(const Events::TargetExecutionResumed& event) {
|
void InsightWorker::onTargetResumedEvent(const Events::TargetExecutionResumed& event) {
|
||||||
this->lastTargetState = TargetState::RUNNING;
|
if (this->lastTargetState != TargetState::RUNNING) {
|
||||||
emit this->targetStateUpdated(TargetState::RUNNING);
|
this->lastTargetState = TargetState::RUNNING;
|
||||||
|
emit this->targetStateUpdated(TargetState::RUNNING);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void InsightWorker::onTargetResetEvent(const Events::TargetReset& event) {
|
void InsightWorker::onTargetResetEvent(const Events::TargetReset& event) {
|
||||||
@@ -127,9 +129,11 @@ namespace Bloom
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->lastTargetState = TargetState::STOPPED;
|
if (this->lastTargetState != TargetState::STOPPED) {
|
||||||
emit this->targetStateUpdated(TargetState::RUNNING);
|
this->lastTargetState = TargetState::STOPPED;
|
||||||
emit this->targetStateUpdated(TargetState::STOPPED);
|
emit this->targetStateUpdated(TargetState::STOPPED);
|
||||||
|
}
|
||||||
|
|
||||||
emit this->targetProgramCounterUpdated(this->targetControllerConsole.getProgramCounter());
|
emit this->targetProgramCounterUpdated(this->targetControllerConsole.getProgramCounter());
|
||||||
|
|
||||||
} catch (const Exceptions::Exception& exception) {
|
} catch (const Exceptions::Exception& exception) {
|
||||||
|
|||||||
Reference in New Issue
Block a user