mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
don't apply toolbar hack on osx
This commit is contained in:
parent
5fcd2d6e9b
commit
2264703db9
1 changed files with 1 additions and 1 deletions
|
|
@ -1763,7 +1763,7 @@ learnt today")
|
||||||
self.removeToolBar(mw.toolBar)
|
self.removeToolBar(mw.toolBar)
|
||||||
mw.toolBar.hide()
|
mw.toolBar.hide()
|
||||||
ver = QtConfig.qt_version >> 8
|
ver = QtConfig.qt_version >> 8
|
||||||
if ver >= 0x407:
|
if not sys.platform.startswith("darwin") and ver >= 0x407:
|
||||||
# this became necessary in 4.7 or we end up with two toolbars
|
# this became necessary in 4.7 or we end up with two toolbars
|
||||||
mw.toolBar.deleteLater()
|
mw.toolBar.deleteLater()
|
||||||
mw.toolBar = QToolBar(self)
|
mw.toolBar = QToolBar(self)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue