mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
remove qstringlist ref from init, disable cram for now
This commit is contained in:
parent
a253d756e3
commit
f0311d1ecb
2 changed files with 5 additions and 4 deletions
|
@ -138,7 +138,7 @@ def run():
|
||||||
rd = runningDir
|
rd = runningDir
|
||||||
if isMac and getattr(sys, 'frozen', None):
|
if isMac and getattr(sys, 'frozen', None):
|
||||||
rd = os.path.abspath(runningDir + "/../../..")
|
rd = os.path.abspath(runningDir + "/../../..")
|
||||||
QCoreApplication.setLibraryPaths(QStringList([rd]))
|
QCoreApplication.setLibraryPaths([rd])
|
||||||
|
|
||||||
# create the app
|
# create the app
|
||||||
app = AnkiApp(sys.argv)
|
app = AnkiApp(sys.argv)
|
||||||
|
|
|
@ -6,7 +6,7 @@ import simplejson
|
||||||
from aqt.qt import *
|
from aqt.qt import *
|
||||||
from anki.consts import NEW_CARDS_RANDOM
|
from anki.consts import NEW_CARDS_RANDOM
|
||||||
from anki.hooks import addHook
|
from anki.hooks import addHook
|
||||||
from aqt.utils import limitedCount
|
from aqt.utils import limitedCount, showInfo
|
||||||
|
|
||||||
class Overview(object):
|
class Overview(object):
|
||||||
"Deck overview."
|
"Deck overview."
|
||||||
|
@ -44,8 +44,9 @@ class Overview(object):
|
||||||
self.mw.deck.reset()
|
self.mw.deck.reset()
|
||||||
self.mw.moveToState("review")
|
self.mw.moveToState("review")
|
||||||
elif url == "cram":
|
elif url == "cram":
|
||||||
self.mw.deck.cramGroups()
|
return showInfo("not yet implemented")
|
||||||
self.mw.moveToState("review")
|
#self.mw.deck.cramGroups()
|
||||||
|
#self.mw.moveToState("review")
|
||||||
elif url == "opts":
|
elif url == "opts":
|
||||||
self.mw.onStudyOptions()
|
self.mw.onStudyOptions()
|
||||||
elif url == "chgrp":
|
elif url == "chgrp":
|
||||||
|
|
Loading…
Reference in a new issue