This commit is contained in:
Nav
2022-12-10 22:05:18 +00:00
parent adb450d111
commit d807f9910a

View File

@@ -447,10 +447,16 @@ namespace Bloom::Widgets
this->refreshButton->setDisabled(false); this->refreshButton->setDisabled(false);
} }
} else if (newState == TargetState::RUNNING) { return;
}
if (newState == TargetState::RUNNING) {
this->hexViewerWidget->setDisabled(true); this->hexViewerWidget->setDisabled(true);
this->refreshButton->setDisabled(true); this->refreshButton->setDisabled(true);
this->setStaleData(this->data.has_value());
if (this->data.has_value()) {
this->setStaleData(true);
}
} }
} }
@@ -504,13 +510,18 @@ namespace Bloom::Widgets
} }
void TargetMemoryInspectionPane::onTargetReset() { void TargetMemoryInspectionPane::onTargetReset() {
this->setStaleData(this->data.has_value()); if (this->data.has_value()) {
this->setStaleData(true);
}
} }
void TargetMemoryInspectionPane::onProgrammingModeEnabled() { void TargetMemoryInspectionPane::onProgrammingModeEnabled() {
this->hexViewerWidget->setDisabled(true); this->hexViewerWidget->setDisabled(true);
this->refreshButton->setDisabled(true); this->refreshButton->setDisabled(true);
this->setStaleData(this->data.has_value());
if (this->data.has_value()) {
this->setStaleData(true);
}
} }
void TargetMemoryInspectionPane::onProgrammingModeDisabled() { void TargetMemoryInspectionPane::onProgrammingModeDisabled() {
@@ -521,10 +532,10 @@ namespace Bloom::Widgets
void TargetMemoryInspectionPane::onTargetMemoryWritten( void TargetMemoryInspectionPane::onTargetMemoryWritten(
TargetMemoryType memoryType, TargetMemoryType memoryType,
TargetMemoryAddressRange addressRange TargetMemoryAddressRange
) { ) {
if (memoryType == this->targetMemoryDescriptor.type) { if (memoryType == this->targetMemoryDescriptor.type && this->data.has_value()) {
this->setStaleData(this->data.has_value()); this->setStaleData(true);
} }
} }