diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp index 4fdf06db..11c7219e 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp @@ -87,6 +87,7 @@ namespace Bloom::Widgets containerLayout->addWidget(this->hexViewerWidget); this->setRefreshOnTargetStopEnabled(this->settings.refreshOnTargetStop); + this->setRefreshOnActivationEnabled(this->settings.refreshOnActivation); QObject::connect( this, diff --git a/src/ProjectSettings.cpp b/src/ProjectSettings.cpp index e3e4d395..70f09d55 100644 --- a/src/ProjectSettings.cpp +++ b/src/ProjectSettings.cpp @@ -148,6 +148,14 @@ namespace Bloom ) const { auto inspectionPaneSettings = Widgets::TargetMemoryInspectionPaneSettings(); + if (jsonObject.contains("refreshOnTargetStop")) { + inspectionPaneSettings.refreshOnTargetStop = jsonObject.value("refreshOnTargetStop").toBool(); + } + + if (jsonObject.contains("refreshOnActivation")) { + inspectionPaneSettings.refreshOnActivation = jsonObject.value("refreshOnActivation").toBool(); + } + if (jsonObject.contains("hexViewerSettings")) { auto& hexViewerSettings = inspectionPaneSettings.hexViewerWidgetSettings; const auto hexViewerSettingsObj = jsonObject.find("hexViewerSettings")->toObject(); @@ -326,7 +334,10 @@ namespace Bloom QJsonObject InsightProjectSettings::memoryInspectionPaneSettingsToJson( const Widgets::TargetMemoryInspectionPaneSettings& inspectionPaneSettings ) const { - auto settingsObj = QJsonObject(); + auto settingsObj = QJsonObject({ + {"refreshOnTargetStop", inspectionPaneSettings.refreshOnTargetStop}, + {"refreshOnActivation", inspectionPaneSettings.refreshOnActivation}, + }); const auto& hexViewerSettings = inspectionPaneSettings.hexViewerWidgetSettings; settingsObj.insert("hexViewerSettings", QJsonObject({