🎨 Flashcard new/review card limit support configure to 0 Fix https://github.com/siyuan-note/siyuan/issues/7841

This commit is contained in:
Liang Ding 2023-03-31 11:52:56 +08:00
parent 8a2a724341
commit 307eab1b35
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 10 additions and 10 deletions

View file

@ -321,10 +321,10 @@ func InitConf() {
if nil == Conf.Flashcard {
Conf.Flashcard = conf.NewFlashcard()
}
if 1 > Conf.Flashcard.NewCardLimit {
if 0 > Conf.Flashcard.NewCardLimit {
Conf.Flashcard.NewCardLimit = 20
}
if 1 > Conf.Flashcard.ReviewCardLimit {
if 0 > Conf.Flashcard.ReviewCardLimit {
Conf.Flashcard.ReviewCardLimit = 200
}