mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 15:13:39 +02:00
Fix #1955458 [[Enhancement] Unnecessary delimiter](https://bugs.launchpad.net/calibre/+bug/1955458)
This commit is contained in:
parent
0915f05e82
commit
a96272c678
2 changed files with 0 additions and 8 deletions
|
|
@ -726,7 +726,6 @@ def find_in_tag_browser_triggered(self, field, value):
|
|||
|
||||
def toggle_grid_view(self, show):
|
||||
self.library_view.alternate_views.show_view('grid' if show else None)
|
||||
self.sort_sep.setVisible(show)
|
||||
self.sort_button.setVisible(show)
|
||||
|
||||
def toggle_search_bar(self, show):
|
||||
|
|
|
|||
|
|
@ -212,13 +212,7 @@ def __init__(self, parent):
|
|||
x.setVisible(False)
|
||||
x.setToolTip(_('Close the Virtual library'))
|
||||
parent.clear_vl = x
|
||||
self.vl_sep = QFrame(self)
|
||||
self.vl_sep.setFrameStyle(QFrame.Shape.VLine | QFrame.Shadow.Sunken)
|
||||
l.addWidget(self.vl_sep)
|
||||
|
||||
parent.sort_sep = QFrame(self)
|
||||
parent.sort_sep.setFrameStyle(QFrame.Shape.VLine | QFrame.Shadow.Sunken)
|
||||
parent.sort_sep.setVisible(False)
|
||||
parent.sort_button = self.sort_button = sb = QToolButton(self)
|
||||
sb.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonTextBesideIcon)
|
||||
sb.setToolTip(_('Change how the displayed books are sorted'))
|
||||
|
|
@ -231,7 +225,6 @@ def __init__(self, parent):
|
|||
sb.menu().aboutToShow.connect(self.populate_sort_menu)
|
||||
sb.setVisible(False)
|
||||
l.addWidget(sb)
|
||||
l.addWidget(parent.sort_sep)
|
||||
|
||||
x = parent.search = SearchBox2(self, as_url=search_as_url)
|
||||
x.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
|
||||
|
|
|
|||
Loading…
Reference in a new issue