From 6221dd504e411a67dcb8f31732dc609fc48a0434 Mon Sep 17 00:00:00 2001 From: leiurayer <1432593898@qq.com> Date: Mon, 10 Jul 2023 23:13:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BB=BB=E5=8A=A1=E6=A0=8F?= =?UTF-8?q?=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DownKyi/Services/Download/DownloadService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/DownKyi/Services/Download/DownloadService.cs b/src/DownKyi/Services/Download/DownloadService.cs index c6297bc..8e569b7 100644 --- a/src/DownKyi/Services/Download/DownloadService.cs +++ b/src/DownKyi/Services/Download/DownloadService.cs @@ -20,6 +20,7 @@ using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; +using System.Windows.Media.Imaging; namespace DownKyi.Services.Download { @@ -804,6 +805,8 @@ namespace DownKyi.Services.Download tokenSource = new CancellationTokenSource(); cancellationToken = tokenSource.Token; _notifyIcon = new TaskbarIcon(); + _notifyIcon.IconSource = new BitmapImage(new Uri("pack://application:,,,/Resources/favicon.ico")); + workTask = Task.Run(DoWork); }