From b3007159ccf03647a9025ea871347c5c625d1147 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 11 Jun 2016 11:10:06 +0530 Subject: [PATCH] Fix top bar button hiding broken --- src/pyj/book_list/top_bar.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/book_list/top_bar.pyj b/src/pyj/book_list/top_bar.pyj index 1b774ba448..acbe8f6e75 100644 --- a/src/pyj/book_list/top_bar.pyj +++ b/src/pyj/book_list/top_bar.pyj @@ -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)