To reproduce bug:
- Open a deck, then go to ‘Custom study’ menu
- Push “Increase today’s new card limit”
Let’s suppose that I have 100 new cards to learn
- In the appeared box enter negative value -300
- Do steps 1 and 2, but now enter 100
I expect to see 100 cards, but I see 0.
If after that I add 400 cards to limit I will see 300 new cards to learn in my deck description
I think that’s because:
The problem is that counter for today’s new cards limits counter can be negative(even though it’s shown in deck description as 0). So you(developers) should write a line of code after adding input value to counter, that checks if counter is less than 0, and if so set it to 0
or just not allow input to be less than 0(but I don’t approve this solution)
This bug also appears if you do the same but to the “today’s review card limit”.
Hope this will be fixed