refactor(core): move autostart logic out of sysopt and clean up naming (#6429)

This commit is contained in:
Slinetrac
2026-03-05 11:08:41 +00:00
committed by GitHub
parent 5abc722bbb
commit fe60649718
5 changed files with 68 additions and 74 deletions
+2 -3
View File
@@ -1,6 +1,5 @@
use super::CmdResult;
use crate::core::handle;
use crate::core::sysopt::Sysopt;
use crate::core::{autostart, handle};
use crate::utils::resolve::ui::{self, UiReadyStage};
use crate::{cmd::StringifyErr as _, feat, utils::dirs};
use clash_verge_logging::{Type, logging};
@@ -96,7 +95,7 @@ pub fn get_app_dir() -> CmdResult<String> {
/// 获取当前自启动状态
#[tauri::command]
pub fn get_auto_launch_status() -> CmdResult<bool> {
Sysopt::global().get_launch_status().stringify_err()
autostart::get_launch_status().stringify_err()
}
/// 下载图标缓存