Corrected premature enabling of the hex viewer in the memory inspection pane

This commit is contained in:
Nav
2023-07-18 22:27:28 +01:00
parent 36ed2e9cb4
commit dea3dff5fa

View File

@@ -645,7 +645,7 @@ namespace Bloom::Widgets
} }
void TargetMemoryInspectionPane::onProgrammingModeDisabled() { void TargetMemoryInspectionPane::onProgrammingModeDisabled() {
const auto disabled = this->targetState != Targets::TargetState::STOPPED; const auto disabled = this->targetState != Targets::TargetState::STOPPED || !this->data.has_value();
this->hexViewerWidget->setDisabled(disabled); this->hexViewerWidget->setDisabled(disabled);
this->refreshButton->setDisabled(disabled); this->refreshButton->setDisabled(disabled);
} }