Persist newly obtained register value to inspeciton window

This commit is contained in:
Nav
2021-09-21 21:17:03 +01:00
parent 2ef7fff79b
commit 073a9e8bb7
3 changed files with 17 additions and 3 deletions

View File

@@ -82,6 +82,10 @@ void RegisterWidget::setRegisterValue(const Targets::TargetRegister& targetRegis
this->valueLabel->style()->polish(this->valueLabel);
this->valueLabel->setText(registerValue);
if (this->inspectWindow != nullptr) {
this->inspectWindow->setValue(targetRegister.value);
}
}
void RegisterWidget::clearInlineValue() {
@@ -101,6 +105,10 @@ void RegisterWidget::openInspectionWindow() {
);
} else {
if (this->currentRegister.has_value()) {
this->inspectWindow->setValue(this->currentRegister->value);
}
this->inspectWindow->show();
}
}