mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-27 19:17:13 +00:00
fix: force DOM flush for speed and eta when download completes
This commit is contained in:
@@ -125,6 +125,7 @@ export const DownloadItem = React.memo<DownloadItemProps>(({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<span
|
<span
|
||||||
|
key={`status-${download.status}`}
|
||||||
ref={statusTextRef}
|
ref={statusTextRef}
|
||||||
title={
|
title={
|
||||||
(download.status === 'queued' || download.status === 'staged') && queueIndex !== -1
|
(download.status === 'queued' || download.status === 'staged') && queueIndex !== -1
|
||||||
@@ -165,6 +166,7 @@ export const DownloadItem = React.memo<DownloadItemProps>(({
|
|||||||
|
|
||||||
<div className="download-cell-truncate">
|
<div className="download-cell-truncate">
|
||||||
<span
|
<span
|
||||||
|
key={`speed-${download.status}`}
|
||||||
ref={speedTextRef}
|
ref={speedTextRef}
|
||||||
className="tabular-nums"
|
className="tabular-nums"
|
||||||
title={download.status === 'downloading' ? download.speed : download.status === 'processing' ? 'Processing…' : '-'}
|
title={download.status === 'downloading' ? download.speed : download.status === 'processing' ? 'Processing…' : '-'}
|
||||||
@@ -175,6 +177,7 @@ export const DownloadItem = React.memo<DownloadItemProps>(({
|
|||||||
|
|
||||||
<div className="download-cell-truncate">
|
<div className="download-cell-truncate">
|
||||||
<span
|
<span
|
||||||
|
key={`eta-${download.status}`}
|
||||||
ref={etaTextRef}
|
ref={etaTextRef}
|
||||||
className="tabular-nums"
|
className="tabular-nums"
|
||||||
title={download.status === 'downloading' ? download.eta : download.status === 'processing' ? 'Muxing…' : '-'}
|
title={download.status === 'downloading' ? download.eta : download.status === 'processing' ? 'Muxing…' : '-'}
|
||||||
|
|||||||
Reference in New Issue
Block a user