Fix link buttons

This commit is contained in:
Dankrushen
2021-02-08 19:40:16 -05:00
parent 1df42c1b35
commit 41fedece97
3 changed files with 6 additions and 6 deletions

View File

@@ -371,17 +371,17 @@ namespace Flowframes
private void discordBtn_Click(object sender, EventArgs e) private void discordBtn_Click(object sender, EventArgs e)
{ {
Process.Start("https://discord.gg/eJHD2NSJRe"); Process.Start(new ProcessStartInfo("https://discord.gg/eJHD2NSJRe") { UseShellExecute = true });
} }
private void paypalBtn_Click(object sender, EventArgs e) private void paypalBtn_Click(object sender, EventArgs e)
{ {
Process.Start("https://www.paypal.com/paypalme/nmkd/10"); Process.Start(new ProcessStartInfo("https://www.paypal.com/paypalme/nmkd/10") { UseShellExecute = true });
} }
private void patreonBtn_Click(object sender, EventArgs e) private void patreonBtn_Click(object sender, EventArgs e)
{ {
Process.Start("https://patreon.com/n00mkrad"); Process.Start(new ProcessStartInfo("https://patreon.com/n00mkrad") { UseShellExecute = true });
} }
private void settingsBtn_Click(object sender, EventArgs e) private void settingsBtn_Click(object sender, EventArgs e)

View File

@@ -69,14 +69,14 @@ namespace Flowframes.Forms
{ {
string link = Updater.GetLatestVerLink(true); string link = Updater.GetLatestVerLink(true);
if(!string.IsNullOrWhiteSpace(link)) if(!string.IsNullOrWhiteSpace(link))
Process.Start(link); Process.Start(new ProcessStartInfo(link) { UseShellExecute = true });
} }
private void updateFreeBtn_Click(object sender, EventArgs e) private void updateFreeBtn_Click(object sender, EventArgs e)
{ {
string link = Updater.GetLatestVerLink(false); string link = Updater.GetLatestVerLink(false);
if (!string.IsNullOrWhiteSpace(link)) if (!string.IsNullOrWhiteSpace(link))
Process.Start(link); Process.Start(new ProcessStartInfo(link) { UseShellExecute = true });
} }
} }
} }

View File

@@ -288,7 +288,7 @@ namespace Flowframes
hasShownError = true; hasShownError = true;
InterpolateUtils.ShowMessage($"A python module is missing.\nCheck {logFilename} for details.\n\n{line}", "Error"); InterpolateUtils.ShowMessage($"A python module is missing.\nCheck {logFilename} for details.\n\n{line}", "Error");
if(!Python.HasEmbeddedPyFolder()) if(!Python.HasEmbeddedPyFolder())
Process.Start("https://github.com/n00mkrad/flowframes/blob/main/PythonDependencies.md"); Process.Start(new ProcessStartInfo("https://github.com/n00mkrad/flowframes/blob/main/PythonDependencies.md") { UseShellExecute = true });
} }
if (!hasShownError && line.ToLower().Contains("no longer supports this gpu")) if (!hasShownError && line.ToLower().Contains("no longer supports this gpu"))