Corrected bug with memory inspection refresh button continuing to spin upon refresh error
This commit is contained in:
@@ -296,6 +296,20 @@ namespace Bloom::Widgets
|
|||||||
callback.value()
|
callback.value()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
QObject::connect(
|
||||||
|
readMemoryTask,
|
||||||
|
&InsightWorkerTask::failed,
|
||||||
|
this,
|
||||||
|
[this] {
|
||||||
|
this->refreshButton->stopSpin();
|
||||||
|
|
||||||
|
if (this->targetState == Targets::TargetState::STOPPED) {
|
||||||
|
this->refreshButton->setDisabled(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
this->insightWorker.queueTask(readMemoryTask);
|
this->insightWorker.queueTask(readMemoryTask);
|
||||||
|
|||||||
Reference in New Issue
Block a user