Commit 862f73c
fix(widget): show correct empty-collection toast in deck picker widget config
When the user's collection has no decks, the deck-picker widget config was showing "AnkiDroid is not initialized yet. Please open AnkiDroid and
try again" before closing. The collection is fully initialized in that case the user just has no decks to pick from and re-opening the app won't change anything.
Use empty_collection_state_in_widget ("Collection is empty, use app to add decks then reconfigure") instead, which is already the message the widget itself shows in the same situation, keeping the config and the
widget consistent.1 parent 4af7b37 commit 862f73c
1 file changed
Lines changed: 3 additions & 2 deletions
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
114 | | - | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
0 commit comments