mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Tag browser: Fix the find box not using all available width. Fixes #1958490 [Private bug](https://bugs.launchpad.net/calibre/+bug/1958490)
This commit is contained in:
parent
73ffadea06
commit
5d60be4033
@ -599,8 +599,8 @@ class TagBrowserBar(QWidget): # {{{
|
||||
find_shown = self.toggle_search_button.isChecked()
|
||||
self.toggle_search_button.setVisible(not find_shown)
|
||||
l = self.layout()
|
||||
for i in (l.itemAt(i) for i in range(l.count())):
|
||||
l.removeItem(i)
|
||||
while l.count():
|
||||
l.takeAt(0)
|
||||
if find_shown:
|
||||
l.addWidget(self.alter_tb)
|
||||
self.alter_tb.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonIconOnly)
|
||||
|
Loading…
x
Reference in New Issue
Block a user