Merge pull request #179 from fredj/title_asbool

[module/title] Use bumblebee.util.asbool function
This commit is contained in:
tobi-wan-kenobi 2017-09-18 19:52:45 +02:00 committed by GitHub
commit dec651213e

View file

@ -39,7 +39,7 @@ class Module(bumblebee.engine.Module):
self._full_title = "n/a" self._full_title = "n/a"
def get_title(self, widget): def get_title(self, widget):
if self.parameter("scroll", "False").lower() == "true": if bumblebee.util.asbool(self.parameter("scroll", False)):
return self.scrolling_focused_title(widget) return self.scrolling_focused_title(widget)
else: else:
return self.focused_title(widget) return self.focused_title(widget)