grrrrr
This commit is contained in:
parent
4a75f13e68
commit
05f2e28984
3 changed files with 35 additions and 25 deletions
|
@ -53,9 +53,7 @@ void FeedsToolBar::saveChangeableActions(const QStringList &actions) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void FeedsToolBar::loadChangeableActions() {
|
void FeedsToolBar::loadChangeableActions() {
|
||||||
QStringList action_names = qApp->settings()->value(GROUP(GUI),
|
QStringList action_names = qApp->settings()->value(GROUP(GUI), SETTING(GUI::FeedsToolbarActions)).toString().split(',',
|
||||||
"feeds_toolbar",
|
|
||||||
"m_actionUpdateAllFeeds,m_actionMarkAllFeedsRead").toString().split(',',
|
|
||||||
QString::SkipEmptyParts);
|
QString::SkipEmptyParts);
|
||||||
|
|
||||||
loadChangeableActions(action_names);
|
loadChangeableActions(action_names);
|
||||||
|
|
|
@ -77,9 +77,9 @@ void FeedsView::quit() {
|
||||||
void FeedsView::updateAutoUpdateStatus() {
|
void FeedsView::updateAutoUpdateStatus() {
|
||||||
// Restore global intervals.
|
// Restore global intervals.
|
||||||
// NOTE: Specific per-feed interval are left intact.
|
// NOTE: Specific per-feed interval are left intact.
|
||||||
m_globalAutoUpdateInitialInterval = qApp->settings()->value(GROUP(Feeds), "auto_update_interval", DEFAULT_AUTO_UPDATE_INTERVAL).toInt();
|
m_globalAutoUpdateInitialInterval = qApp->settings()->value(GROUP(Feeds), SETTING(Feeds::AutoUpdateInterval)).toInt();
|
||||||
m_globalAutoUpdateRemainingInterval = m_globalAutoUpdateInitialInterval;
|
m_globalAutoUpdateRemainingInterval = m_globalAutoUpdateInitialInterval;
|
||||||
m_globalAutoUpdateEnabled = qApp->settings()->value(GROUP(Feeds), "auto_update_enabled", false).toBool();
|
m_globalAutoUpdateEnabled = qApp->settings()->value(GROUP(Feeds), SETTING(Feeds::AutoUpdateEnabled)).toBool();
|
||||||
|
|
||||||
// Start global auto-update timer if it is not running yet.
|
// Start global auto-update timer if it is not running yet.
|
||||||
// NOTE: The timer must run even if global auto-update
|
// NOTE: The timer must run even if global auto-update
|
||||||
|
@ -170,7 +170,7 @@ void FeedsView::updateAllFeeds() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void FeedsView::updateAllFeedsOnStartup() {
|
void FeedsView::updateAllFeedsOnStartup() {
|
||||||
if (qApp->settings()->value(GROUP(Feeds), "feeds_update_on_startup", false).toBool()) {
|
if (qApp->settings()->value(GROUP(Feeds), SETTING(Feeds::FeedsUpdateOnStartup)).toBool()) {
|
||||||
qDebug("Requesting update for all feeds on application startup.");
|
qDebug("Requesting update for all feeds on application startup.");
|
||||||
QTimer::singleShot(STARTUP_UPDATE_DELAY, this, SLOT(updateAllFeeds()));
|
QTimer::singleShot(STARTUP_UPDATE_DELAY, this, SLOT(updateAllFeeds()));
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,15 @@ namespace Feeds {
|
||||||
|
|
||||||
KEY CountFormat = "count_format";
|
KEY CountFormat = "count_format";
|
||||||
VALUE(char*) CountFormatDef = "(%unread)";
|
VALUE(char*) CountFormatDef = "(%unread)";
|
||||||
|
|
||||||
|
KEY AutoUpdateInterval = "auto_update_interval";
|
||||||
|
VALUE(int) AutoUpdateIntervalDef = DEFAULT_AUTO_UPDATE_INTERVAL;
|
||||||
|
|
||||||
|
KEY AutoUpdateEnabled = "auto_update_enabled";
|
||||||
|
VALUE(bool) AutoUpdateEnabledDef = false;
|
||||||
|
|
||||||
|
KEY FeedsUpdateOnStartup = "feeds_update_on_startup";
|
||||||
|
VALUE(bool) FeedsUpdateOnStartupDef = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Messages.
|
// Messages.
|
||||||
|
@ -66,6 +75,9 @@ namespace GUI {
|
||||||
|
|
||||||
KEY ToolbarStyle = "toolbar_style";
|
KEY ToolbarStyle = "toolbar_style";
|
||||||
VALUE(Qt::ToolButtonStyle) ToolbarStyleDef = Qt::ToolButtonIconOnly;
|
VALUE(Qt::ToolButtonStyle) ToolbarStyleDef = Qt::ToolButtonIconOnly;
|
||||||
|
|
||||||
|
KEY FeedsToolbarActions = "feeds_toolbar";
|
||||||
|
VALUE(char*) FeedsToolbarActionsDef = "m_actionUpdateAllFeeds,m_actionMarkAllFeedsRead";
|
||||||
}
|
}
|
||||||
|
|
||||||
// General.
|
// General.
|
||||||
|
|
Loading…
Add table
Reference in a new issue