Revise update linklabel click

https://stackoverflow.com/a/53245993
This commit is contained in:
Kurt 2023-01-30 18:51:17 -08:00
parent 0dc9deb137
commit 81487af9ba

View file

@ -212,7 +212,7 @@ public partial class Main : Form
{
var date = $"{2000 + ver.Major:00}{ver.Minor:00}{ver.Build:00}";
L_UpdateAvailable.Text = $"{MsgProgramUpdateAvailable} {date}";
L_UpdateAvailable.Click += (_, _) => Process.Start(ThreadPath);
L_UpdateAvailable.Click += (_, _) => Process.Start(new ProcessStartInfo(ThreadPath) { UseShellExecute = true });
L_UpdateAvailable.Visible = true;
}