mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-08 17:35:18 +00:00
check for yomitan init
This commit is contained in:
1 parent
dcfe074535
commit
3b5afbc34e
3 files changed
+16
-7
No files matched your search
@@ -2,8 +2,8 @@
|
||||
use cjdic2_core::{AppService, YomitanRow};
|
||||
|
||||
#[tauri::command]
|
||||
pub fn is_yomitan_setup_yet(state: tauri::State<AppService>) -> bool {
|
||||
state.is_yomitan_setup_yet()
|
||||
pub fn is_yomitan_setup_yet(state: tauri::State<AppService>) -> Result<bool, String> {
|
||||
state.is_yomitan_setup_yet().map_err(|e| e.to_string())
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
|
||||
Reference in new issue
Block a user