Corrected memory inspection panel UI bug where refresh button would remain disabled when it shouldn't

This commit is contained in:
Nav
2022-04-24 16:12:46 +01:00
parent e61d651a24
commit 55b363cc58

View File

@@ -141,11 +141,14 @@ void TargetMemoryInspectionPane::refreshMemoryValues(std::optional<std::function
QObject::connect(
readMemoryTask,
&InsightWorkerTask::completed,
&InsightWorkerTask::finished,
this,
[this] {
this->hexViewerWidget->refreshButton->stopSpin();
this->hexViewerWidget->refreshButton->setDisabled(false);
if (this->targetState == Targets::TargetState::STOPPED) {
this->hexViewerWidget->refreshButton->setDisabled(false);
}
}
);