Skip to content

Commit

Permalink
Revert "remove unnecessary double-check"
Browse files Browse the repository at this point in the history
This reverts commit d5c433a
  • Loading branch information
pannal committed Sep 2, 2018
1 parent 9887ed9 commit 3e4273b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/windows/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,9 @@ def _sectionChanged(self):
def _sectionReallyChanged(self):
section = self.lastSection
self.setProperty('hub.focus', '')
if util.advancedSettings.dynamicBackgrounds:
self.backgroundSet = False

util.DEBUG_LOG('Section changed ({0}): {1}'.format(section.key, repr(section.title)))
self.showHubs(section)
self.lastSection = section
Expand Down Expand Up @@ -977,7 +980,7 @@ def _showHub(self, hub, hubitems=None, index=None, with_progress=False, with_art
items = []

for obj in hubitems or hub.items:
if not self.backgroundSet or util.advancedSettings.dynamicBackgrounds:
if not self.backgroundSet and util.advancedSettings.dynamicBackgrounds:
self.backgroundSet = True
self.setProperty(
'background', util.backgroundFromArt(obj.art, width=self.width, height=self.height)
Expand Down

0 comments on commit 3e4273b

Please sign in to comment.