this repo has no description
at main 393 B view raw
1use tauri::State; 2 3use crate::utils::config::Config; 4 5#[tauri::command] 6pub fn set_hide_editor_on_app_start(value: bool, conf: State<Config>) { 7 let mut config = conf.store.lock().unwrap(); 8 config.hide_editor_on_start = value; 9} 10 11#[tauri::command] 12pub fn get_hide_editor_on_app_start(conf: State<Config>) -> bool { 13 let config = conf.store.lock().unwrap(); 14 config.hide_editor_on_start 15}