little fixes and for Android ui hotfix

This commit is contained in:
polv committed 2026-02-25 23:16:55 +07:00
1 parent ff64c035e6
commit 8c9ad287eb
4 files changed
+38 -11

No files matched your search

+12 -3
View File
@@ -10,7 +10,10 @@ pub async fn init_yomitan(
let zip_dir = app
.path()
.resolve("resources/yomitan", BaseDirectory::Resource)
.map_err(|e| e.to_string())?;
.map_err(|e| {
eprintln!("{:?}", e);
e.to_string()
})?;
// println!("{:?}", zip_dir.as_path());
state
@@ -24,7 +27,10 @@ pub async fn init_yomitan(
app.emit("yomitan-import-progress", r).unwrap();
},
)
.map_err(|e| e.to_string())?;
.map_err(|e| {
eprintln!("{:?}", e);
e.to_string()
})?;
Ok(())
}
@@ -39,5 +45,8 @@ pub async fn search_yomitan(
) -> Result<Vec<YomitanRow>, String> {
state
.search_yomitan(q_term, q_reading, limit, offset)
.map_err(|e| e.to_string())
.map_err(|e| {
eprintln!("{:?}", e);
e.to_string()
})
}