fix: refresh auto de la liste des téléchargements après ajout qBittorrent

Le QbittorrentProvider expose un callback onDownloadStarted qui est
appelé quand un téléchargement est lancé avec succès. Sur la page
downloads, ce callback déclenche un refresh de la liste.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-27 09:28:28 +01:00
parent 65daac4177
commit fe3702c4b3
2 changed files with 11 additions and 5 deletions

View File

@@ -185,7 +185,7 @@ export function DownloadsPage({ initialDownloads, initialLatestFound, qbConfigur
{/* Available downloads from latest detection */}
{initialLatestFound.length > 0 && (
<QbittorrentProvider initialConfigured={qbConfigured}>
<QbittorrentProvider initialConfigured={qbConfigured} onDownloadStarted={() => refresh(false)}>
<div className="mt-10">
<h2 className="text-xl font-bold text-foreground mb-4 flex items-center gap-2">
<Icon name="search" size="lg" />