From ff486f2780572beb14b6766da1ddb33fa73bf5a2 Mon Sep 17 00:00:00 2001 From: himsin Date: Wed, 6 May 2026 18:52:09 +0530 Subject: [PATCH] Fix download path not showing when its same as save path. --- src/components/TorrentDetailsPanel.tsx | 3 ++- src/mobile/MobileTorrentDetail.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/TorrentDetailsPanel.tsx b/src/components/TorrentDetailsPanel.tsx index bda0d72..af7dbc6 100644 --- a/src/components/TorrentDetailsPanel.tsx +++ b/src/components/TorrentDetailsPanel.tsx @@ -269,7 +269,7 @@ function GeneralTab({ hash, category, tags }: { hash: string; category: string; Edit - {properties.download_path && properties.download_path !== properties.save_path && ( + {properties.download_path && (properties.download_path !== properties.save_path || properties.pieces_have < properties.pieces_num) && (
@@ -906,3 +906,4 @@ export function TorrentDetailsPanel({ hash, name, category, tags, expanded, onTo } + diff --git a/src/mobile/MobileTorrentDetail.tsx b/src/mobile/MobileTorrentDetail.tsx index 909c30e..aa4990f 100644 --- a/src/mobile/MobileTorrentDetail.tsx +++ b/src/mobile/MobileTorrentDetail.tsx @@ -308,7 +308,7 @@ export function MobileTorrentDetail({ torrentHash, instanceId, onClose }: Props) onEdit={() => openPathEditor('savePath')} editDisabled={pathMutationPending} /> - {torrent.download_path && torrent.download_path !== torrent.save_path && ( + {torrent.download_path && (torrent.download_path !== torrent.save_path || torrent.progress < 1) && (