Revert "If the update fails during the upgrade, the update will be retried."

This reverts commit 9748fbb076.
This commit is contained in:
2dust
2025-03-04 17:02:05 +08:00
parent 8d1853e991
commit 6e5af34877
3 changed files with 87 additions and 113 deletions

View File

@@ -14,7 +14,7 @@ namespace AmazTool
return AppDomain.CurrentDomain.BaseDirectory;
}
public static string GetPath(string? fileName)
public static string GetPath(string fileName)
{
var startupPath = StartupPath();
if (string.IsNullOrEmpty(fileName))
@@ -25,7 +25,6 @@ namespace AmazTool
}
public static string V2rayN => "v2rayN";
public static string AmazTool => "AmazTool";
public static void StartV2RayN()
{
@@ -45,14 +44,9 @@ namespace AmazTool
{
for (var i = second; i > 0; i--)
{
Utils.WriteLine(i);
Console.WriteLine(i);
Thread.Sleep(1000);
}
}
public static void WriteLine(object obj)
{
Console.WriteLine(obj);
}
}
}