mirror of
https://github.com/leiurayer/downkyi.git
synced 2024-04-21 12:41:55 +00:00
添加任务栏图标
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user