Optimize groups query
This commit is contained in:
1 parent
58bdaac7fe
commit
a20c72eb9d
2 files changed
+2
-3
No files matched your search
@@ -9,7 +9,6 @@ mod navigation;
|
||||
pub mod notification;
|
||||
mod pages;
|
||||
mod styling;
|
||||
mod widgets;
|
||||
pub mod tests;
|
||||
|
||||
use crate::app::start;
|
||||
|
||||
@@ -323,7 +323,7 @@ impl DictionaryState {
|
||||
.state
|
||||
.dictionary
|
||||
.read()
|
||||
.query_par(Arc::new(|word| word.group_id == Id(1)));
|
||||
.query(Arc::new(|word| word.group_id == Id(1)));
|
||||
}
|
||||
|
||||
fn setup_words_query(&mut self) {
|
||||
@@ -332,7 +332,7 @@ impl DictionaryState {
|
||||
.state
|
||||
.dictionary
|
||||
.read()
|
||||
.query_par(Arc::new(move |word| word.group_id == id));
|
||||
.query(Arc::new(move |word| word.group_id == id));
|
||||
}
|
||||
|
||||
fn launch_auto_save_offset(&mut self, handle: EntityHandle<WordData>) -> Task<RootMessage> {
|
||||
|
||||
Reference in new issue
Block a user