From 1aa3ec9fa10bbbf5e84d76296ae06d6c55170af6 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 15 Jan 2009 04:42:43 +0900 Subject: [PATCH] make number of extra new cards configurable --- ankiqt/config.py | 1 + ankiqt/ui/main.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ankiqt/config.py b/ankiqt/config.py index 8d8e8ec8d..81eaef646 100644 --- a/ankiqt/config.py +++ b/ankiqt/config.py @@ -75,6 +75,7 @@ class Config(dict): 'showStudyOptions': False, 'showStudyStats': True, 'showCardTimer': True, + 'extraNewCards': 5, 'created': time.time(), 'id': genID(), } diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 40d3cfe0a..4a8f37e30 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -1389,7 +1389,7 @@ day = :d""", d=yesterday) ########################################################################## def onLearnMore(self): - self.deck.extraNewCards += 5 + self.deck.extraNewCards += self.config['extraNewCards'] self.reset() def onReviewEarly(self):