Mercurial > hg > Feedworm
diff PreferencesDialog.py @ 61:db35ab7753f0
add a preference to hide read feed entries
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sat, 24 Jul 2010 03:11:06 +0200 |
parents | 03358c113170 |
children | e8c2730eb444 |
line wrap: on
line diff
--- a/PreferencesDialog.py Fri Jul 23 17:41:05 2010 +0200 +++ b/PreferencesDialog.py Sat Jul 24 03:11:06 2010 +0200 @@ -15,6 +15,9 @@ def fillUi(self): maximized = self.preferences.startMaximized() self.ui.startMaximized.setChecked(maximized) + + hideRead = self.preferences.hideReadFeedEntries() + self.ui.hideReadFeedEntries.setChecked(hideRead) def startMaximizedChanged(self, change): if change: @@ -22,6 +25,12 @@ else: self.preferences.setStartMaximized(False) + def hideReadFeedEntriesChanged(self, change): + if change: + self.preferences.setHideReadFeedEntries(True) + else: + self.preferences.setHideReadFeedEntries(False) + def accept(self): self.session.commit() QtGui.QDialog.accept(self)