fix open folder

This commit is contained in:
Julian Freeman
2025-12-02 09:37:11 -04:00
parent 9430c78eb7
commit 61e29dae1d
2 changed files with 15 additions and 6 deletions

View File

@@ -47,12 +47,14 @@ pub async fn start_download(app: AppHandle, url: String, options: DownloadOption
let status = if res.is_ok() { "success" } else { "failed" };
// Add to history
let output_dir = options.output_path.clone(); // Store the directory user selected
let item = HistoryItem {
id: id_clone,
title: metadata.title,
thumbnail: metadata.thumbnail,
url: url,
output_path: format!("{}/", options.output_path), // Rough path, real path is dynamic
output_path: output_dir,
timestamp: chrono::Utc::now(),
status: status.to_string(),
format: options.quality,