don't exclude the default deck from the normal name list

https://forums.ankiweb.net/t/issue-backend-get-deck-names-doesnt-return-default-deck/52
This commit is contained in:
Damien Elmes 2020-06-11 14:36:00 +10:00
parent 10a1d06dce
commit 514c73f547

View File

@ -469,7 +469,6 @@ impl Collection {
.storage
.get_all_deck_names()?
.into_iter()
.filter(|(id, _name)| id.0 != 1)
.filter(|(id, _name)| match self.get_deck(*id) {
Ok(Some(deck)) => !deck.is_filtered(),
_ => true,