mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
trim
This commit is contained in:
@@ -35,12 +35,12 @@ namespace Netch.Forms
|
||||
NewVersionLabel.Text = "...";
|
||||
try
|
||||
{
|
||||
DownloadProgressChangedEventHandler OnDownloadProgressChanged()
|
||||
void OnDownloadProgressChanged(object o1, DownloadProgressChangedEventArgs args)
|
||||
{
|
||||
return (_, args) => { BeginInvoke(new Action(() => { NewVersionLabel.Text = $"{args.ProgressPercentage}%"; })); };
|
||||
BeginInvoke(new Action(() => { NewVersionLabel.Text = $"{args.ProgressPercentage}%"; }));
|
||||
}
|
||||
|
||||
await UpdateChecker.UpdateNetch(OnDownloadProgressChanged());
|
||||
await UpdateChecker.UpdateNetch(OnDownloadProgressChanged);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
|
||||
@@ -72,10 +72,10 @@ namespace Netch.Utils
|
||||
private static bool _mux;
|
||||
public static event EventHandler TestDelayFinished;
|
||||
|
||||
public static bool TestAllDelay()
|
||||
public static void TestAllDelay()
|
||||
{
|
||||
if (_mux)
|
||||
return false;
|
||||
return;
|
||||
try
|
||||
{
|
||||
_mux = true;
|
||||
@@ -88,7 +88,6 @@ namespace Netch.Utils
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user