1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-02 01:44:26 +00:00

Remember automated rss downloader dialog geometry

This commit is contained in:
Christophe Dumez 2010-11-13 11:04:40 +00:00
parent 8b83d60732
commit 046ebb5a8f

View File

@ -70,7 +70,9 @@ AutomatedRssDownloader::~AutomatedRssDownloader()
void AutomatedRssDownloader::loadSettings()
{
// TODO: load dialog size and pos
// load dialog geometry
QIniSettings settings("qBittorrent", "qBittorrent");
restoreGeometry(settings.value("RssFeedDownloader/geometry").toByteArray());
ui->checkEnableDownloader->setChecked(RssSettings::isRssDownloadingEnabled());
// Display download rules
loadRulesList();
@ -79,7 +81,9 @@ void AutomatedRssDownloader::loadSettings()
void AutomatedRssDownloader::saveSettings()
{
RssSettings::setRssDownloadingEnabled(ui->checkEnableDownloader->isChecked());
// TODO: Save dialog size and pos
// Save dialog geometry
QIniSettings settings("qBittorrent", "qBittorrent");
settings.setValue("RssFeedDownloader/geometry", saveGeometry());
}
void AutomatedRssDownloader::loadRulesList()