From 16efc1353d7244d6da9dd2c1116d27008aaf335d Mon Sep 17 00:00:00 2001 From: Nav Date: Sat, 6 Nov 2021 00:20:05 +0000 Subject: [PATCH] Conditional title for memory inspection pane, based on memory type --- .../TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp index 9c33f0cb..9f5d931a 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp @@ -44,7 +44,9 @@ TargetMemoryInspectionPane::TargetMemoryInspectionPane( this->titleBar->layout()->setContentsMargins(7, 0, 7, 0); auto titleLabel = this->titleBar->findChild("title"); - titleLabel->setText("Internal RAM"); + titleLabel->setText( + this->targetMemoryDescriptor.type == TargetMemoryType::EEPROM ? "Internal EEPROM" : "Internal RAM" + ); auto subContainerLayout = this->container->findChild("sub-container-layout"); this->hexViewerWidget = new HexViewerWidget(this->targetMemoryDescriptor, this->insightWorker, this);