mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-09 17:39:35 +00:00
little fixes and for Android ui hotfix
This commit is contained in:
1 parent
ff64c035e6
commit
8c9ad287eb
4 files changed
+38
-11
No files matched your search
@@ -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()
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user