mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 01:23:42 +02: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
1 changed files with 2 additions and 2 deletions
|
|
@ -599,8 +599,8 @@ def update_searchbar_state(self):
|
|||
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…
Reference in a new issue