Skip to content

Commit 090816e

Browse files
committed
[修复]不再强制下载完整环境配置
1 parent 9759bae commit 090816e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Main.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,18 @@ private void Main_Load(object sender, EventArgs e)
295295
Process.Start(this.GetType().Assembly.Location); //重启程序防止窗体错位
296296
Environment.Exit(0);
297297
}
298+
else if (File.Exists(appPath + "\\bin\\scrcpy.exe"))
299+
{
300+
Console.WriteLine("已取消下载多任务模式配置");
301+
Process disableMulti = new Process();
302+
disableMulti.StartInfo.FileName = appPath + "\\" + Path.GetFileName(Application.ExecutablePath);
303+
disableMulti.StartInfo.Arguments = "--disableMulti";
304+
disableMulti.Start();
305+
Environment.Exit(1);
306+
}
298307
else
299308
{
300-
Console.WriteLine("已取消下载,退出程序");
309+
Console.WriteLine("已取消下载环境配置,退出程序");
301310
Environment.Exit(1);
302311
}
303312
}

0 commit comments

Comments
 (0)