Replaced nasty onInsightStateChangedEvent event handler in TargetController with new GetTargetState command
This commit is contained in:
@@ -58,6 +58,11 @@ namespace Bloom
|
||||
emit this->ready();
|
||||
}
|
||||
|
||||
void InsightWorker::onInsightWindowActivated() {
|
||||
this->lastTargetState = this->targetControllerConsole.getTargetState();
|
||||
emit this->targetStateUpdated(this->lastTargetState);
|
||||
}
|
||||
|
||||
std::optional<InsightWorkerTask*> InsightWorker::getQueuedTask() {
|
||||
auto task = std::optional<InsightWorkerTask*>();
|
||||
|
||||
|
||||
@@ -30,12 +30,10 @@ namespace Bloom
|
||||
|
||||
void queueTask(InsightWorkerTask* task);
|
||||
|
||||
void dispatchEvents() {
|
||||
this->eventListener->dispatchCurrentEvents();
|
||||
}
|
||||
|
||||
void startup();
|
||||
|
||||
void onInsightWindowActivated();
|
||||
|
||||
signals:
|
||||
void ready();
|
||||
void taskQueued();
|
||||
@@ -58,6 +56,10 @@ namespace Bloom
|
||||
|
||||
SyncSafe<std::queue<InsightWorkerTask*>> queuedTasks;
|
||||
|
||||
void dispatchEvents() {
|
||||
this->eventListener->dispatchCurrentEvents();
|
||||
}
|
||||
|
||||
std::optional<InsightWorkerTask*> getQueuedTask();
|
||||
|
||||
void onTargetStoppedEvent(const Events::TargetExecutionStopped& event);
|
||||
|
||||
Reference in New Issue
Block a user