From caf37642bffec6a43518256d2853518ee4b35932 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 28 Aug 2021 09:14:39 -0400 Subject: [PATCH] Don't serialize cpuMeter to settings. --- src/settings.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/settings.cpp b/src/settings.cpp index 43ed9c42..b3d92e86 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -130,7 +130,7 @@ json_t* toJson() { json_object_set_new(rootJ, "tooltips", json_boolean(tooltips)); - json_object_set_new(rootJ, "cpuMeter", json_boolean(cpuMeter)); + // json_object_set_new(rootJ, "cpuMeter", json_boolean(cpuMeter)); json_object_set_new(rootJ, "lockModules", json_boolean(lockModules)); @@ -282,9 +282,9 @@ void fromJson(json_t* rootJ) { if (tooltipsJ) tooltips = json_boolean_value(tooltipsJ); - json_t* cpuMeterJ = json_object_get(rootJ, "cpuMeter"); - if (cpuMeterJ) - cpuMeter = json_boolean_value(cpuMeterJ); + // json_t* cpuMeterJ = json_object_get(rootJ, "cpuMeter"); + // if (cpuMeterJ) + // cpuMeter = json_boolean_value(cpuMeterJ); json_t* lockModulesJ = json_object_get(rootJ, "lockModules"); if (lockModulesJ)