Skip to content

Commit

Permalink
Merge pull request #679 from MrServo/master
Browse files Browse the repository at this point in the history
[SimpleRSS] tiny bugfix
  • Loading branch information
jbleyel authored Aug 14, 2024
2 parents c11e6f8 + ed34384 commit 266bcd8
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions simplerss/src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,6 @@ def __init__(self, session, feed=None, newItems=False, rssPoller=None, parent=No
self["content"] = List([])
self["summary"] = StaticText()
self["info"] = StaticText()
self["button_bouquet"] = Pixmap()
self["key_bouquet"] = StaticText(_("change feed"))
if not newItems:
self["actions"] = ActionMap(["ColorActions",
Expand Down Expand Up @@ -626,16 +625,7 @@ def __init__(self, session, feed=None, newItems=False, rssPoller=None, parent=No
self.onLayoutFinish.append(self.onLayoutFinished)

def onLayoutFinished(self):
if self.feed and self.feed.title == _("New Items"):
self["content"].style = "news"
else:
self["content"].style = "default"
pngfile = join(PLUGINPATH, "icons/bouquet_%s.png" % ("fHD" if getDesktop(0).size().width() > 1300 else "HD"))
if exists(pngfile):
self["button_bouquet"].instance.setPixmapFromFile(pngfile)
self["button_bouquet"].show()
else:
self["button_bouquet"].hide()
self["content"].style = "news" if self.feed and self.feed.title == _("New Items") else "default"
self.updateTitle()

def updateTitle(self):
Expand Down

0 comments on commit 266bcd8

Please sign in to comment.