Skip to content

Commit 3c1cda5

Browse files
authored
Fix download path not showing when its same as save path. (#79)
1 parent 1d1e346 commit 3c1cda5

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/TorrentDetailsPanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ function GeneralTab({ hash, category, tags }: { hash: string; category: string;
269269
Edit
270270
</button>
271271
</div>
272-
{properties.download_path && properties.download_path !== properties.save_path && (
272+
{properties.download_path && (properties.download_path !== properties.save_path || properties.pieces_have < properties.pieces_num) && (
273273
<div className="mt-1.5 px-3 py-2 rounded border flex items-start gap-3" style={cellBase}>
274274
<div className="flex-1 min-w-0">
275275
<div className="text-[9px] uppercase tracking-widest" style={{ color: 'var(--text-muted)' }}>
@@ -906,3 +906,4 @@ export function TorrentDetailsPanel({ hash, name, category, tags, expanded, onTo
906906
}
907907

908908

909+

src/mobile/MobileTorrentDetail.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export function MobileTorrentDetail({ torrentHash, instanceId, onClose }: Props)
308308
onEdit={() => openPathEditor('savePath')}
309309
editDisabled={pathMutationPending}
310310
/>
311-
{torrent.download_path && torrent.download_path !== torrent.save_path && (
311+
{torrent.download_path && (torrent.download_path !== torrent.save_path || torrent.progress < 1) && (
312312
<PathRow
313313
label="Download Path"
314314
value={torrent.download_path}
@@ -616,3 +616,4 @@ function PathRow({
616616
)
617617
}
618618

619+

0 commit comments

Comments
 (0)