Fixed #119.
This commit is contained in:
parent
7ca8288e07
commit
636596ec8f
5 changed files with 12 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
||||||
Added:
|
Added:
|
||||||
<ul>
|
<ul>
|
||||||
<li>Added experimental support for fetching metadata for individual feeds via feed context menu. (issue #118)</li>
|
<li>Added experimental support for fetching metadata for individual feeds via feed context menu. (issue #118)</li>
|
||||||
|
<li>"Show unread feeds only" is now persistent between application sessions. GUI of this feature will be worked on in upcoming releases. (issue #119)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
Fixed:
|
Fixed:
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#include "core/feedsproxymodel.h"
|
#include "core/feedsproxymodel.h"
|
||||||
|
|
||||||
#include "definitions/definitions.h"
|
#include "definitions/definitions.h"
|
||||||
|
#include "miscellaneous/application.h"
|
||||||
#include "core/feedsmodel.h"
|
#include "core/feedsmodel.h"
|
||||||
#include "core/category.h"
|
#include "core/category.h"
|
||||||
#include "core/feed.h"
|
#include "core/feed.h"
|
||||||
|
@ -219,6 +220,7 @@ bool FeedsProxyModel::showUnreadOnly() const {
|
||||||
|
|
||||||
void FeedsProxyModel::setShowUnreadOnly(bool show_unread_only) {
|
void FeedsProxyModel::setShowUnreadOnly(bool show_unread_only) {
|
||||||
m_showUnreadOnly = show_unread_only;
|
m_showUnreadOnly = show_unread_only;
|
||||||
|
qApp->settings()->setValue(GROUP(Feeds), Feeds::ShowOnlyUnreadFeeds, show_unread_only);
|
||||||
}
|
}
|
||||||
|
|
||||||
QModelIndexList FeedsProxyModel::mapListToSource(const QModelIndexList &indexes) {
|
QModelIndexList FeedsProxyModel::mapListToSource(const QModelIndexList &indexes) {
|
||||||
|
|
|
@ -319,6 +319,9 @@ void FormMain::loadSize() {
|
||||||
m_ui->m_tabWidget->feedMessageViewer()->loadSize();
|
m_ui->m_tabWidget->feedMessageViewer()->loadSize();
|
||||||
m_ui->m_actionSwitchToolBars->setChecked(settings->value(GROUP(GUI), SETTING(GUI::ToolbarsVisible)).toBool());
|
m_ui->m_actionSwitchToolBars->setChecked(settings->value(GROUP(GUI), SETTING(GUI::ToolbarsVisible)).toBool());
|
||||||
m_ui->m_actionSwitchListHeaders->setChecked(settings->value(GROUP(GUI), SETTING(GUI::ListHeadersVisible)).toBool());
|
m_ui->m_actionSwitchListHeaders->setChecked(settings->value(GROUP(GUI), SETTING(GUI::ListHeadersVisible)).toBool());
|
||||||
|
|
||||||
|
// Make sure that only unread feeds are shown if user has that feature set on.
|
||||||
|
m_ui->m_actionShowOnlyUnreadFeeds->setChecked(settings->value(GROUP(Feeds), SETTING(Feeds::ShowOnlyUnreadFeeds)).toBool());
|
||||||
}
|
}
|
||||||
|
|
||||||
void FormMain::saveSize() {
|
void FormMain::saveSize() {
|
||||||
|
|
|
@ -45,6 +45,9 @@ DVALUE(bool) Feeds::AutoUpdateEnabledDef = false;
|
||||||
DKEY Feeds::FeedsUpdateOnStartup = "feeds_update_on_startup";
|
DKEY Feeds::FeedsUpdateOnStartup = "feeds_update_on_startup";
|
||||||
DVALUE(bool) Feeds::FeedsUpdateOnStartupDef = false;
|
DVALUE(bool) Feeds::FeedsUpdateOnStartupDef = false;
|
||||||
|
|
||||||
|
DKEY Feeds::ShowOnlyUnreadFeeds = "show_only_unread_feeds";
|
||||||
|
DVALUE(bool) Feeds::ShowOnlyUnreadFeedsDef = false;
|
||||||
|
|
||||||
// Messages.
|
// Messages.
|
||||||
DKEY Messages::ID = "messages";
|
DKEY Messages::ID = "messages";
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,9 @@ namespace Feeds {
|
||||||
|
|
||||||
KEY FeedsUpdateOnStartup;
|
KEY FeedsUpdateOnStartup;
|
||||||
VALUE(bool) FeedsUpdateOnStartupDef;
|
VALUE(bool) FeedsUpdateOnStartupDef;
|
||||||
|
|
||||||
|
KEY ShowOnlyUnreadFeeds;
|
||||||
|
VALUE(bool) ShowOnlyUnreadFeedsDef;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Messages.
|
// Messages.
|
||||||
|
|
Loading…
Add table
Reference in a new issue