File size: 397 Bytes
07bbbbf |
1 2 3 4 5 6 7 8 9 10 11 12 |
// System commands module - Tauri command implementations for system-level operations
use tauri::command;
use crate::error::IntoStringResult;
use crate::mdict_app::with_write_access;
/// Set base URL for MDX protocol
#[command]
pub async fn system_set_base_url(base_url: String) -> std::result::Result<(), String> {
with_write_access(|app| app.set_base_url(base_url)).into_string_result()
}
|