mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-25 09:18:20 +03:00
Rename RSS properties to follow other names
This commit is contained in:
parent
e486bb4c29
commit
1014313d88
1 changed files with 8 additions and 8 deletions
|
@ -213,10 +213,10 @@ void AppController::preferencesAction()
|
|||
data["dyndns_domain"] = pref->getDynDomainName();
|
||||
|
||||
// RSS settings
|
||||
data["RSSRefreshInterval"] = RSS::Session::instance()->refreshInterval();
|
||||
data["RSSMaxArticlesPerFeed"] = RSS::Session::instance()->maxArticlesPerFeed();
|
||||
data["RSSProcessingEnabled"] = RSS::Session::instance()->isProcessingEnabled();
|
||||
data["RSSAutoDownloadingEnabled"] = RSS::AutoDownloader::instance()->isProcessingEnabled();
|
||||
data["rss_refresh_interval"] = RSS::Session::instance()->refreshInterval();
|
||||
data["rss_max_articles_per_feed"] = RSS::Session::instance()->maxArticlesPerFeed();
|
||||
data["rss_processing_enabled"] = RSS::Session::instance()->isProcessingEnabled();
|
||||
data["rss_auto_downloading_enabled"] = RSS::AutoDownloader::instance()->isProcessingEnabled();
|
||||
|
||||
setResult(QJsonObject::fromVariantMap(data));
|
||||
}
|
||||
|
@ -495,13 +495,13 @@ void AppController::setPreferencesAction()
|
|||
pref->apply();
|
||||
|
||||
QVariantMap::ConstIterator it;
|
||||
if ((it = m.find(QLatin1String("RSSRefreshInterval"))) != m.constEnd())
|
||||
if ((it = m.find(QLatin1String("rss_refresh_interval"))) != m.constEnd())
|
||||
RSS::Session::instance()->setRefreshInterval(it.value().toUInt());
|
||||
if ((it = m.find(QLatin1String("RSSMaxArticlesPerFeed"))) != m.constEnd())
|
||||
if ((it = m.find(QLatin1String("rss_max_articles_per_feed"))) != m.constEnd())
|
||||
RSS::Session::instance()->setMaxArticlesPerFeed(it.value().toInt());
|
||||
if ((it = m.find(QLatin1String("RSSProcessingEnabled"))) != m.constEnd())
|
||||
if ((it = m.find(QLatin1String("rss_processing_enabled"))) != m.constEnd())
|
||||
RSS::Session::instance()->setProcessingEnabled(it.value().toBool());
|
||||
if ((it = m.find(QLatin1String("RSSAutoDownloadingEnabled"))) != m.constEnd())
|
||||
if ((it = m.find(QLatin1String("rss_auto_downloading_enabled"))) != m.constEnd())
|
||||
RSS::AutoDownloader::instance()->setProcessingEnabled(it.value().toBool());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue