fix downloader, no bundle

This commit is contained in:
polv committed 2026-03-04 13:19:59 +07:00
1 parent 5380742513
commit 047054f8f7
4 files changed
+129 -191

No files matched your search

+4 -1
View File
@@ -192,7 +192,10 @@ impl AppService {
{
let conn = Connection::open(self.db.dir.join(YOMITAN_DBFILE))?;
for z in to_be_removed_dicts.clone().iter() {
conn.execute("DELETE FROM dictionaries WHERE bundle_name = ?1", [z])?;
conn.execute(
"DELETE FROM dictionaries WHERE bundle_name = ?1 AND lang = ?2",
[z, lang],
)?;
}
}