Rewrite history page
This commit is contained in:
1 parent
f19a6f64c3
commit
532640058e
11 files changed
+201
-230
No files matched your search
@@ -81,7 +81,7 @@ impl NavigatedPage<DictionaryMessage> for DictionaryState {
|
||||
let dict = &self.state.dictionary.read();
|
||||
|
||||
let mut query = dict.query(Arc::new(|_| true));
|
||||
let handles = query.handles(dict);
|
||||
let handles = query.handles();
|
||||
words = handles.filter(|h| self.included.contains(h)).collect();
|
||||
|
||||
return Some(Page::DictionaryQuiz(DictionaryQuizState::new(
|
||||
@@ -552,7 +552,7 @@ impl DictionaryState {
|
||||
|
||||
let groups = &self.state.word_groups.read();
|
||||
|
||||
for mut group in self.groups_query.handles(groups) {
|
||||
for mut group in self.groups_query.handles() {
|
||||
let group_name = groups.get(&mut group).unwrap().name.clone();
|
||||
row = row.push(
|
||||
button(text!("{}", group_name))
|
||||
|
||||
Reference in new issue
Block a user