Corrected memory inspection panel UI bug where refresh button would remain disabled when it shouldn't
This commit is contained in:
@@ -141,11 +141,14 @@ void TargetMemoryInspectionPane::refreshMemoryValues(std::optional<std::function
|
|||||||
|
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
readMemoryTask,
|
readMemoryTask,
|
||||||
&InsightWorkerTask::completed,
|
&InsightWorkerTask::finished,
|
||||||
this,
|
this,
|
||||||
[this] {
|
[this] {
|
||||||
this->hexViewerWidget->refreshButton->stopSpin();
|
this->hexViewerWidget->refreshButton->stopSpin();
|
||||||
this->hexViewerWidget->refreshButton->setDisabled(false);
|
|
||||||
|
if (this->targetState == Targets::TargetState::STOPPED) {
|
||||||
|
this->hexViewerWidget->refreshButton->setDisabled(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user