mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix top bar button hiding broken
This commit is contained in:
parent
b45a6366cb
commit
b3007159cc
@ -114,7 +114,7 @@ class TopBar:
|
|||||||
right = bar.firstChild.nextSibling
|
right = bar.firstChild.nextSibling
|
||||||
elem = right.querySelector('#{}-bar-icon-{}'.format(('top' if bar is self.bar else 'dummy'), icon_name))
|
elem = right.querySelector('#{}-bar-icon-{}'.format(('top' if bar is self.bar else 'dummy'), icon_name))
|
||||||
if elem:
|
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):
|
def apply_state(self, left, buttons):
|
||||||
self.set_left(**left)
|
self.set_left(**left)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user