From 55b363cc585f15900a8bd79407d715e88366ebae Mon Sep 17 00:00:00 2001 From: Nav Date: Sun, 24 Apr 2022 16:12:46 +0100 Subject: [PATCH] Corrected memory inspection panel UI bug where refresh button would remain disabled when it shouldn't --- .../TargetMemoryInspectionPane.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp index 36498ac0..9fff783b 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp @@ -141,11 +141,14 @@ void TargetMemoryInspectionPane::refreshMemoryValues(std::optionalhexViewerWidget->refreshButton->stopSpin(); - this->hexViewerWidget->refreshButton->setDisabled(false); + + if (this->targetState == Targets::TargetState::STOPPED) { + this->hexViewerWidget->refreshButton->setDisabled(false); + } } );