fix: pass proper argument to profile rename

This commit is contained in:
zhom
2025-08-17 13:30:02 +04:00
parent 58b0067b37
commit 95592b4aa1
2 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -1998,12 +1998,12 @@ pub async fn check_browser_status(
#[tauri::command]
pub fn rename_profile(
_app_handle: tauri::AppHandle,
old_id: &str,
old_name: &str,
new_name: &str,
) -> Result<BrowserProfile, String> {
let profile_manager = ProfileManager::instance();
profile_manager
.rename_profile(old_id, new_name)
.rename_profile(old_name, new_name)
.map_err(|e| format!("Failed to rename profile: {e}"))
}