mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
Revert "check if anki is already open and prompt user"
This reverts commit a05fc37d94
.
This commit is contained in:
parent
93a20e13b6
commit
c84f97c33c
2 changed files with 1 additions and 9 deletions
|
@ -173,8 +173,7 @@ def run():
|
|||
except (IOError, OSError):
|
||||
pass
|
||||
|
||||
if not mw.abortOpen:
|
||||
app.exec_()
|
||||
app.exec_()
|
||||
|
||||
if __name__ == "__main__":
|
||||
run()
|
||||
|
|
|
@ -33,7 +33,6 @@ class AnkiQt(QMainWindow):
|
|||
QMainWindow.__init__(self)
|
||||
self.errorOccurred = False
|
||||
self.inDbHandler = False
|
||||
self.abortOpen = False
|
||||
if sys.platform.startswith("darwin"):
|
||||
qt_mac_set_menubar_icons(False)
|
||||
ankiqt.mw = self
|
||||
|
@ -632,12 +631,6 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
|
|||
r = self.loadDeck(path, interactive=False, sync=False)
|
||||
if r:
|
||||
return r
|
||||
else:
|
||||
# deck is already open
|
||||
if not ui.utils.askUser(
|
||||
_("Anki is already open. Open another copy?")):
|
||||
self.abortOpen = True
|
||||
return
|
||||
self.onNew(initial=True)
|
||||
|
||||
def getDefaultDir(self, save=False):
|
||||
|
|
Loading…
Reference in a new issue