Fix history bug
This commit is contained in:
1 parent
9456eec2af
commit
c5c1f34e1c
7 files changed
+38
-34
No files matched your search
+1
-1
@@ -489,7 +489,7 @@ impl ImportState {
|
||||
add_words(word, connection);
|
||||
index += 1;
|
||||
let mut progress = progress.lock();
|
||||
*progress = index as f32 / total_len;
|
||||
*progress = (index as f32 / total_len).min(1.0);
|
||||
}
|
||||
|
||||
state.dictionary.append(&mut words_list);
|
||||
|
||||
Reference in new issue
Block a user