mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix small transient window visible during calibre startup when the tag browser find bar is shown
This commit is contained in:
parent
4e876b6650
commit
f25c51c3cd
@ -447,12 +447,18 @@ class TagBrowserBar(QWidget): # {{{
|
|||||||
l.addWidget(self.item_search, 10)
|
l.addWidget(self.item_search, 10)
|
||||||
l.addWidget(self.search_button)
|
l.addWidget(self.search_button)
|
||||||
self.item_search.setFocus(Qt.OtherFocusReason)
|
self.item_search.setFocus(Qt.OtherFocusReason)
|
||||||
|
self.toggle_search_button.setVisible(False)
|
||||||
|
self.search_button.setVisible(True)
|
||||||
|
self.item_search.setVisible(True)
|
||||||
else:
|
else:
|
||||||
l.addWidget(self.alter_tb)
|
l.addWidget(self.alter_tb)
|
||||||
self.alter_tb.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
self.alter_tb.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
||||||
l.addStretch(10)
|
l.addStretch(10)
|
||||||
l.addStretch(10)
|
l.addStretch(10)
|
||||||
l.addWidget(self.toggle_search_button)
|
l.addWidget(self.toggle_search_button)
|
||||||
|
self.toggle_search_button.setVisible(True)
|
||||||
|
self.search_button.setVisible(False)
|
||||||
|
self.item_search.setVisible(False)
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user