From e9a6e6edc869a477d8674d96fe56e0b207e0fb82 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Tue, 23 Aug 2022 23:12:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=9F=E5=BA=A6=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/Column/DownloadSpeedColumn.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/N_m3u8DL-RE/Column/DownloadSpeedColumn.cs b/src/N_m3u8DL-RE/Column/DownloadSpeedColumn.cs index 6acc75c..848ff9c 100644 --- a/src/N_m3u8DL-RE/Column/DownloadSpeedColumn.cs +++ b/src/N_m3u8DL-RE/Column/DownloadSpeedColumn.cs @@ -34,8 +34,7 @@ namespace N_m3u8DL_RE.Column SpeedContainer.Reset(); DateTimeString = now; } - var percentage = (int)task.Percentage; - var flag = percentage == 100 || percentage == 0; + var flag = task.IsFinished || !task.IsStarted; var style = flag ? Style.Plain : MyStyle; return flag ? new Text("-", style).Centered() : new Text(Speed, style).Centered(); }