[module/title] Use bumblebee.util.asbool function

This commit is contained in:
Frederic Junod 2017-09-18 08:30:44 +02:00
parent e079c07363
commit e70ba50a30

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)