From f7460681f2843a3204558755b4d8feda7e65b16f Mon Sep 17 00:00:00 2001 From: Nav Date: Sun, 14 Aug 2022 18:07:05 +0100 Subject: [PATCH] Disabled refresh button in memory inspection pane, when programming mode is enabled --- .../TargetMemoryInspectionPane.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp index 97f157d0..88f55f35 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp @@ -451,9 +451,12 @@ namespace Bloom::Widgets void TargetMemoryInspectionPane::onProgrammingModeEnabled() { this->hexViewerWidget->setDisabled(true); + this->refreshButton->setDisabled(true); } void TargetMemoryInspectionPane::onProgrammingModeDisabled() { - this->hexViewerWidget->setDisabled(this->targetState != Targets::TargetState::STOPPED); + const auto disabled = this->targetState != Targets::TargetState::STOPPED; + this->hexViewerWidget->setDisabled(disabled); + this->refreshButton->setDisabled(disabled); } }