Browse Source

Merge pull request #11057 from Piccirello/fix-pref-saving

Don't save preferences until all options are processed
adaptive-webui-19844
Mike Tzou 5 years ago committed by GitHub
parent
commit
8555629128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/webui/api/appcontroller.cpp

6
src/webui/api/appcontroller.cpp

@ -624,9 +624,6 @@ void AppController::setPreferencesAction() @@ -624,9 +624,6 @@ void AppController::setPreferencesAction()
if (hasKey("dyndns_domain"))
pref->setDynDomainName(it.value().toString());
// Save preferences
pref->apply();
if (hasKey("rss_refresh_interval"))
RSS::Session::instance()->setRefreshInterval(it.value().toUInt());
if (hasKey("rss_max_articles_per_feed"))
@ -738,6 +735,9 @@ void AppController::setPreferencesAction() @@ -738,6 +735,9 @@ void AppController::setPreferencesAction()
const QHostAddress announceAddr {it.value().toString().trimmed()};
session->setAnnounceIP(announceAddr.isNull() ? QString {} : announceAddr.toString());
}
// Save preferences
pref->apply();
}
void AppController::defaultSavePathAction()

Loading…
Cancel
Save