Fix top bar button hiding broken

This commit is contained in:
Kovid Goyal 2016-06-11 11:10:06 +05:30
parent b45a6366cb
commit b3007159cc

View File

@ -114,7 +114,7 @@ class TopBar:
right = bar.firstChild.nextSibling
elem = right.querySelector('#{}-bar-icon-{}'.format(('top' if bar is self.bar else 'dummy'), icon_name))
if elem:
elem.parentNode.style.display = 'inline' if visible else 'none'
elem.style.display = 'inline' if visible else 'none'
def apply_state(self, left, buttons):
self.set_left(**left)