Fixed bug where memory inspection pane was being enabled too early in certain circumstances
This commit is contained in:
@@ -442,13 +442,19 @@ namespace Bloom::Widgets
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TargetMemoryInspectionPane::postActivate() {
|
void TargetMemoryInspectionPane::postActivate() {
|
||||||
if (
|
if (this->targetState == Targets::TargetState::STOPPED) {
|
||||||
(this->settings.refreshOnActivation || !this->data.has_value())
|
if (
|
||||||
&& this->targetState == Targets::TargetState::STOPPED
|
!this->activeRefreshTask.has_value()
|
||||||
) {
|
&& (this->settings.refreshOnActivation || !this->data.has_value())
|
||||||
this->refreshMemoryValues([this] {
|
) {
|
||||||
|
this->refreshMemoryValues([this] {
|
||||||
|
this->hexViewerWidget->setDisabled(false);
|
||||||
|
});
|
||||||
|
|
||||||
|
} else if (this->data.has_value()) {
|
||||||
this->hexViewerWidget->setDisabled(false);
|
this->hexViewerWidget->setDisabled(false);
|
||||||
});
|
this->refreshButton->setDisabled(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -529,10 +535,6 @@ namespace Bloom::Widgets
|
|||||||
this->refreshMemoryValues([this] {
|
this->refreshMemoryValues([this] {
|
||||||
this->hexViewerWidget->setDisabled(false);
|
this->hexViewerWidget->setDisabled(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
|
||||||
this->hexViewerWidget->setDisabled(false);
|
|
||||||
this->refreshButton->setDisabled(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user