mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 13:23:37 +02:00
Fix the unified title and toolbar on Mac tweak causing calibre to fail to work because of a bug in PyQt5
This commit is contained in:
parent
702f255cf5
commit
6866597563
1 changed files with 4 additions and 1 deletions
|
|
@ -297,7 +297,10 @@ def init_main_window_mixin(self, db):
|
|||
# This is disabled because it introduces various toolbar related bugs
|
||||
# The width of the toolbar becomes the sum of both toolbars
|
||||
if tweaks['unified_title_toolbar_on_osx']:
|
||||
self.setUnifiedTitleAndToolBarOnMac(True)
|
||||
try:
|
||||
self.setUnifiedTitleAndToolBarOnMac(True)
|
||||
except AttributeError:
|
||||
pass # PyQt5 seems to be missing this property
|
||||
|
||||
l = self.centralwidget.layout()
|
||||
l.addWidget(self.search_bar)
|
||||
|
|
|
|||
Loading…
Reference in a new issue