Merge pull request #86 from julienbaley/duplicate_browser

Remember state of Browser/AddCards window if already open
This commit is contained in:
Damien Elmes 2014-07-14 15:09:09 +09:00
commit 83e8694740

View File

@ -53,7 +53,7 @@ class DialogManager(object):
def open(self, name, *args):
(creator, instance) = self._dialogs[name]
if instance:
instance.setWindowState(Qt.WindowActive)
instance.setWindowState(instance.windowState() | Qt.WindowActive)
instance.activateWindow()
instance.raise_()
return instance
@ -253,4 +253,4 @@ environment points to a valid, writable folder.""")
# load the main window
import aqt.main
mw = aqt.main.AnkiQt(app, pm, args)
app.exec_()
app.exec_()