Refactor: Move Updater namespace to Netch.Services

This commit is contained in:
ChsBuffer
2021-05-24 19:28:22 +08:00
parent e3a3396d18
commit 9f809b4d27
3 changed files with 9 additions and 7 deletions

View File

@@ -16,6 +16,7 @@ using System.Threading.Tasks;
using System.Windows.Forms;
using Netch.Enums;
using Netch.Interfaces;
using Netch.Services;
namespace Netch.Forms
{
@@ -413,7 +414,7 @@ namespace Netch.Forms
try
{
await Updater.Updater.DownloadAndUpdate(Path.Combine(Global.NetchDir, "data"),
await Updater.DownloadAndUpdate(Path.Combine(Global.NetchDir, "data"),
Global.NetchDir,
(_, args) => BeginInvoke(new Action(() => NewVersionLabel.Text = $"{args.ProgressPercentage}%")));
}