From 514c73f5478c151a65f0fbca3dd69a1d8c1a5631 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 11 Jun 2020 14:36:00 +1000 Subject: [PATCH] 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 --- rslib/src/decks/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/rslib/src/decks/mod.rs b/rslib/src/decks/mod.rs index bfc2ea8ff..f1968bb4e 100644 --- a/rslib/src/decks/mod.rs +++ b/rslib/src/decks/mod.rs @@ -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,