Browse Source

Avoid settings being reset via WebAPI

Closes #13585.
adaptive-webui-19844
Chocobo1 4 years ago
parent
commit
8568f7a0fb
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 6
      src/webui/api/appcontroller.cpp

6
src/webui/api/appcontroller.cpp

@ -570,8 +570,10 @@ void AppController::setPreferencesAction() @@ -570,8 +570,10 @@ void AppController::setPreferencesAction()
if (hasKey("max_ratio_act"))
session->setMaxRatioAction(static_cast<MaxRatioAction>(it.value().toInt()));
// Add trackers
session->setAddTrackersEnabled(m["add_trackers_enabled"].toBool());
session->setAdditionalTrackers(m["add_trackers"].toString());
if (hasKey("add_trackers_enabled"))
session->setAddTrackersEnabled(it.value().toBool());
if (hasKey("add_trackers"))
session->setAdditionalTrackers(it.value().toString());
// Web UI
// Language

Loading…
Cancel
Save