feat: sync auto-start status

This commit is contained in:
wonfen
2025-03-17 09:48:44 +08:00
Unverified
parent 1e481ed1c1
commit b078560ac1
6 changed files with 30 additions and 2 deletions

View File

@@ -70,6 +70,13 @@ pub fn get_app_dir() -> CmdResult<String> {
Ok(app_home_dir)
}
/// 获取当前自启动状态
#[tauri::command]
pub fn get_auto_launch_status() -> CmdResult<bool> {
use crate::core::sysopt::Sysopt;
wrap_err!(Sysopt::global().get_launch_status())
}
/// 下载图标缓存
#[tauri::command]
pub async fn download_icon_cache(url: String, name: String) -> CmdResult<String> {