refactor: simplify profile retrieval and remove unused template method

This commit is contained in:
Tunglies
2025-11-03 03:17:33 +08:00
Unverified
parent ed08fadb5a
commit dce349586c
5 changed files with 19 additions and 70 deletions

View File

@@ -365,7 +365,7 @@ async fn initialize_config_files() -> Result<()> {
if let Ok(path) = dirs::profiles_path()
&& !path.exists()
{
let template = IProfiles::template();
let template = IProfiles::default();
help::save_yaml(&path, &template, Some("# Clash Verge"))
.await
.map_err(|e| anyhow::anyhow!("Failed to create profiles config: {}", e))?;