Fix history bug

This commit is contained in:
micialware committed 2026-08-20 18:18:14 +03:00
1 parent 9456eec2af
commit c5c1f34e1c
7 files changed
+38 -34

No files matched your search

+1 -1
View File
@@ -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);