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);
}
} else if (newState == TargetState::RUNNING) {
return;
}
if (newState == TargetState::RUNNING) {
this->hexViewerWidget->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() {
this->setStaleData(this->data.has_value());
if (this->data.has_value()) {
this->setStaleData(true);
}
}
void TargetMemoryInspectionPane::onProgrammingModeEnabled() {
this->hexViewerWidget->setDisabled(true);
this->refreshButton->setDisabled(true);
this->setStaleData(this->data.has_value());
if (this->data.has_value()) {
this->setStaleData(true);
}
}
void TargetMemoryInspectionPane::onProgrammingModeDisabled() {
@@ -521,10 +532,10 @@ namespace Bloom::Widgets
void TargetMemoryInspectionPane::onTargetMemoryWritten(
TargetMemoryType memoryType,
TargetMemoryAddressRange addressRange
TargetMemoryAddressRange
) {
if (memoryType == this->targetMemoryDescriptor.type) {
this->setStaleData(this->data.has_value());
if (memoryType == this->targetMemoryDescriptor.type && this->data.has_value()) {
this->setStaleData(true);
}
}