diff --git a/src/gui/formsettings.cpp b/src/gui/formsettings.cpp index 349439ff3..f2c12941d 100755 --- a/src/gui/formsettings.cpp +++ b/src/gui/formsettings.cpp @@ -154,10 +154,15 @@ void FormSettings::selectBrowserExecutable() { void FormSettings::loadFeedsMessages() { m_ui->m_checkRemoveReadMessagesOnExit->setChecked(Settings::instance()->value(APP_CFG_MESSAGES, "clear_read_on_exit", false).toBool()); + m_ui->m_checkAutoUpdate->setChecked(Settings::instance()->value(APP_CFG_FEEDS, "auto_update_enabled", false).toBool()); + m_ui->m_spinAutoUpdateInterval->setValue(Settings::instance()->value(APP_CFG_FEEDS, "auto_update_interval", DEFAULT_AUTO_UPDATE_INTERVAL).toInt()); } void FormSettings::saveFeedsMessages() { Settings::instance()->setValue(APP_CFG_MESSAGES, "clear_read_on_exit", m_ui->m_checkRemoveReadMessagesOnExit->isChecked()); + Settings::instance()->setValue(APP_CFG_FEEDS, "auto_update_enabled", m_ui->m_checkAutoUpdate->isChecked()); + Settings::instance()->setValue(APP_CFG_FEEDS, "auto_update_interval", m_ui->m_spinAutoUpdateInterval->value()); + } void FormSettings::displayProxyPassword(int state) { diff --git a/src/gui/formsettings.ui b/src/gui/formsettings.ui index 14d153562..728a2c9fd 100644 --- a/src/gui/formsettings.ui +++ b/src/gui/formsettings.ui @@ -17,7 +17,7 @@ - 0 + 5 @@ -754,6 +754,34 @@ Authors of this application are NOT responsible for lost data. Feeds + + + + + Auto-update all feeds every + + + + + + + false + + + minutes + + + 5 + + + 240 + + + 15 + + + + @@ -925,5 +953,21 @@ Authors of this application are NOT responsible for lost data. + + m_checkAutoUpdate + toggled(bool) + m_spinAutoUpdateInterval + setEnabled(bool) + + + 324 + 48 + + + 597 + 49 + + + diff --git a/src/gui/formstandardfeeddetails.ui b/src/gui/formstandardfeeddetails.ui index 32e65dab5..21155981a 100644 --- a/src/gui/formstandardfeeddetails.ui +++ b/src/gui/formstandardfeeddetails.ui @@ -109,7 +109,11 @@ - + + + Select the auto-update strategy for this feed. Default auto-update strategy means that the feed will be update in time intervals set in application settings. + +