Scope download controls to profile

This commit is contained in:
2026-05-07 22:17:56 -04:00
parent a6e1482648
commit 912b7b4b94
2 changed files with 24 additions and 0 deletions
@@ -122,6 +122,7 @@ impl BrowserCore {
) -> Result<&mut DownloadEntry, CoreError> {
self.download_entries
.iter_mut()
.filter(|entry| entry.profile_id() == &self.active_profile_id)
.find(|entry| entry.id() == download_id)
.ok_or_else(|| CoreError::DownloadNotFound { id: download_id.clone() })
}