Mercurial > hg > Feedworm
diff PreferencesDialog.py @ 72:e8c2730eb444
control the display of unread feeds/all feeds via Preferences
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Wed, 11 Aug 2010 03:23:02 +0200 |
parents | db35ab7753f0 |
children | 48d1d7bba548 |
line wrap: on
line diff
--- a/PreferencesDialog.py Wed Aug 11 03:10:32 2010 +0200 +++ b/PreferencesDialog.py Wed Aug 11 03:23:02 2010 +0200 @@ -18,6 +18,9 @@ hideRead = self.preferences.hideReadFeedEntries() self.ui.hideReadFeedEntries.setChecked(hideRead) + + showOnlyUnreadFeeds = self.preferences.showOnlyUnreadFeeds() + self.ui.showOnlyUnreadFeeds.setChecked(showOnlyUnreadFeeds) def startMaximizedChanged(self, change): if change: @@ -31,6 +34,12 @@ else: self.preferences.setHideReadFeedEntries(False) + def showOnlyFeedsWithUnreadEntries(self, change): + if change: + self.preferences.setShowOnlyUnreadFeeds(True) + else: + self.preferences.setShowOnlyUnreadFeeds(False) + def accept(self): self.session.commit() QtGui.QDialog.accept(self)