mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
add switch to disable groups without forgetting the selection
This commit is contained in:
parent
31a548ee42
commit
4e989d98a9
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,7 @@ import anki.cards, anki.facts, anki.models, anki.template, anki.cram
|
|||
defaultQconf = {
|
||||
'revGroups': [],
|
||||
'newGroups': [],
|
||||
'groupsOn': True,
|
||||
'newPerDay': 20,
|
||||
'newToday': [0, 0], # currentDay, count
|
||||
'newTodayOrder': NEW_TODAY_ORD,
|
||||
|
@ -556,6 +557,8 @@ select conf from gconf where id = (select gcid from groups where id = ?)""",
|
|||
gid))
|
||||
|
||||
def activeGroups(self, type):
|
||||
if not self.qconf['groupsOn']:
|
||||
return []
|
||||
return self.qconf[type+"Groups"]
|
||||
|
||||
def setActiveGroups(self, type, list):
|
||||
|
|
Loading…
Reference in a new issue