Browse Source

Don't serialize cpuMeter to settings.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
caf37642bf
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/settings.cpp

+ 4
- 4
src/settings.cpp View File

@@ -130,7 +130,7 @@ json_t* toJson() {


json_object_set_new(rootJ, "tooltips", json_boolean(tooltips)); 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)); json_object_set_new(rootJ, "lockModules", json_boolean(lockModules));


@@ -282,9 +282,9 @@ void fromJson(json_t* rootJ) {
if (tooltipsJ) if (tooltipsJ)
tooltips = json_boolean_value(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"); json_t* lockModulesJ = json_object_get(rootJ, "lockModules");
if (lockModulesJ) if (lockModulesJ)


Loading…
Cancel
Save