mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
feat: reorganize service commands and implement logging for service management
This commit is contained in:
@@ -511,13 +511,6 @@ impl CoreManager {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// 强制重新安装服务(供UI调用,用户主动修复服务)
|
||||
pub async fn repair_service(&self) -> Result<()> {
|
||||
service::force_reinstall_service().await?;
|
||||
self.restart_core().await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// 切换核心
|
||||
pub async fn change_core(&self, clash_core: Option<String>) -> Result<(), String> {
|
||||
if clash_core.is_none() {
|
||||
|
||||
Reference in New Issue
Block a user