mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-30 10:42:09 +08:00
refactor(core): move autostart logic out of sysopt and clean up naming (#6429)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
/// 下载图标缓存
|
||||
|
||||
Reference in New Issue
Block a user