mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
don't cram twice, turn off cram sync
This commit is contained in:
parent
9fd4000c0b
commit
0c0c8a180c
1 changed files with 5 additions and 0 deletions
|
@ -987,6 +987,10 @@ class AnkiQt(QMainWindow):
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
def onCram(self):
|
def onCram(self):
|
||||||
|
if self.deck.name() == "cram":
|
||||||
|
ui.utils.showInfo(
|
||||||
|
_("Already cramming. Please close this deck first."))
|
||||||
|
return
|
||||||
(s, ret) = QInputDialog.getText(self, _("Anki"), _("Tags to cram:"))
|
(s, ret) = QInputDialog.getText(self, _("Anki"), _("Tags to cram:"))
|
||||||
if not ret:
|
if not ret:
|
||||||
return
|
return
|
||||||
|
@ -1013,6 +1017,7 @@ class AnkiQt(QMainWindow):
|
||||||
self.deck.midIntervalMax = 0.0486
|
self.deck.midIntervalMax = 0.0486
|
||||||
self.deck.easyIntervalMin = 0.2083
|
self.deck.easyIntervalMin = 0.2083
|
||||||
self.deck.easyIntervalMax = 0.25
|
self.deck.easyIntervalMax = 0.25
|
||||||
|
self.deck.syncName = None
|
||||||
self.rebuildQueue()
|
self.rebuildQueue()
|
||||||
|
|
||||||
# Language handling
|
# Language handling
|
||||||
|
|
Loading…
Reference in a new issue