refactor: create profile in the currently selected group

This commit is contained in:
zhom
2025-08-07 04:15:31 +04:00
parent 9ba51cd4e3
commit 5fed6b7c3f
4 changed files with 41 additions and 47 deletions
-25
View File
@@ -34,31 +34,6 @@ impl ProfileManager {
path
}
#[allow(clippy::too_many_arguments)]
pub async fn create_profile(
&self,
app_handle: &tauri::AppHandle,
name: &str,
browser: &str,
version: &str,
release_type: &str,
proxy_id: Option<String>,
camoufox_config: Option<CamoufoxConfig>,
) -> Result<BrowserProfile, Box<dyn std::error::Error>> {
self
.create_profile_with_group(
app_handle,
name,
browser,
version,
release_type,
proxy_id,
camoufox_config,
None,
)
.await
}
#[allow(clippy::too_many_arguments)]
pub async fn create_profile_with_group(
&self,