Corrected bug with memory inspection refresh button continuing to spin upon refresh error

This commit is contained in:
Nav
2022-09-06 01:05:46 +01:00
parent 0397cb9aba
commit 620e6dc06a

View File

@@ -296,6 +296,20 @@ namespace Bloom::Widgets
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);