This commit is contained in:
2026-04-15 07:55:03 +03:00
parent ed02be0e77
commit 7cbb974d3b
6 changed files with 7 additions and 26 deletions
-10
View File
@@ -355,16 +355,6 @@ pub fn split_with_coma(ts: String) -> Vec<String> {
.collect::<Vec<String>>()
}
pub fn dict_file() -> PathBuf {
let mut dir = dirs::data_dir().unwrap();
dir.push("jap_learn");
if !dir.exists() {
fs::create_dir(dir.clone()).unwrap();
}
dir.push("dict.json");
dir
}
pub fn app_data_dir() -> PathBuf {
let mut dir = dirs::data_dir().unwrap();
dir.push("jap_learn");