fix(provider): set category to custom for imported default config

Ensure that when importing default configuration from live files,
the created provider is properly marked with category "custom" for
correct UI display and filtering.
This commit is contained in:
Jason
2025-11-08 22:45:53 +08:00
parent 9370054911
commit 3da787b9af

View File

@@ -532,12 +532,13 @@ impl ProviderService {
}
};
let provider = Provider::with_id(
let mut provider = Provider::with_id(
"default".to_string(),
"default".to_string(),
settings_config,
None,
);
provider.category = Some("custom".to_string());
{
let mut config = state.config.write().map_err(AppError::from)?;