mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
treat edit current as separate window on osx
This commit is contained in:
parent
064803bce7
commit
5ab511e17a
1 changed files with 7 additions and 1 deletions
|
@ -6,11 +6,17 @@ from aqt.qt import *
|
|||
import aqt.editor
|
||||
from aqt.utils import saveGeom, restoreGeom
|
||||
from anki.hooks import addHook, remHook
|
||||
from anki.utils import isMac
|
||||
|
||||
class EditCurrent(QDialog):
|
||||
|
||||
def __init__(self, mw):
|
||||
QDialog.__init__(self, mw)
|
||||
if isMac:
|
||||
# use a separate window on os x so we can a clean menu
|
||||
QDialog.__init__(self, None, Qt.Window)
|
||||
else:
|
||||
QDialog.__init__(self, mw)
|
||||
QDialog.__init__(self, None, Qt.Window)
|
||||
self.mw = mw
|
||||
self.form = aqt.forms.editcurrent.Ui_Dialog()
|
||||
self.form.setupUi(self)
|
||||
|
|
Loading…
Reference in a new issue