mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Simplify the code a bit now that QIniSettings uses qBittorrent / qBittorrent by default
This commit is contained in:
parent
6c753ac183
commit
da3406b811
18 changed files with 52 additions and 52 deletions
|
@ -108,7 +108,7 @@ AutomatedRssDownloader::~AutomatedRssDownloader()
|
|||
void AutomatedRssDownloader::loadSettings()
|
||||
{
|
||||
// load dialog geometry
|
||||
QIniSettings settings("qBittorrent", "qBittorrent");
|
||||
QIniSettings settings;
|
||||
restoreGeometry(settings.value("RssFeedDownloader/geometry").toByteArray());
|
||||
ui->checkEnableDownloader->setChecked(RssSettings().isRssDownloadingEnabled());
|
||||
ui->hsplitter->restoreState(settings.value("RssFeedDownloader/hsplitterSizes").toByteArray());
|
||||
|
@ -120,7 +120,7 @@ void AutomatedRssDownloader::saveSettings()
|
|||
{
|
||||
RssSettings().setRssDownloadingEnabled(ui->checkEnableDownloader->isChecked());
|
||||
// Save dialog geometry
|
||||
QIniSettings settings("qBittorrent", "qBittorrent");
|
||||
QIniSettings settings;
|
||||
settings.setValue("RssFeedDownloader/geometry", saveGeometry());
|
||||
settings.setValue("RssFeedDownloader/hsplitterSizes", ui->hsplitter->saveState());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue