The icon are based on pinia-plugin-persistedstate and pinia
A simple configuration file read-write library
cargo add persisted-config-rs
use persisted_config_rs::PersistedConfig;
#[tauri::command]
fn set_item(key: String, value: String) {
let mut config = PersistedConfig::new("config");
config.save_config(key, value);
}
#[tauri::command]
fn get_item(key: String) -> String {
let config = PersistedConfig::new("config");
config.get_config(key)
}