Skip to content

Commit

Permalink
fix donate button crash
Browse files Browse the repository at this point in the history
  • Loading branch information
lay295 committed Oct 26, 2022
1 parent 0215cf7 commit e7d4355
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion TwitchDownloaderWPF/PageChatDownload.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
using TwitchDownloader;
using TwitchDownloader.Properties;
using TwitchDownloaderCore.TwitchObjects;
using System.Diagnostics;

namespace TwitchDownloaderWPF
{
Expand Down Expand Up @@ -253,7 +254,7 @@ public void SetImage(string imageUri, bool isGif)

private void btnDonate_Click(object sender, RoutedEventArgs e)
{
System.Diagnostics.Process.Start("https://www.buymeacoffee.com/lay295");
System.Diagnostics.Process.Start(new ProcessStartInfo("https://www.buymeacoffee.com/lay295") { UseShellExecute = true });
}

private void btnSettings_Click(object sender, RoutedEventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/PageChatRender.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ private void Page_Unloaded(object sender, RoutedEventArgs e)

private void btnDonate_Click(object sender, RoutedEventArgs e)
{
System.Diagnostics.Process.Start("https://www.buymeacoffee.com/lay295");
System.Diagnostics.Process.Start(new ProcessStartInfo("https://www.buymeacoffee.com/lay295") { UseShellExecute = true });
}

private void btnSettings_Click(object sender, RoutedEventArgs e)
Expand Down
3 changes: 2 additions & 1 deletion TwitchDownloaderWPF/PageClipDownload.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Http;
Expand Down Expand Up @@ -134,7 +135,7 @@ public void SetImage(string imageUri, bool isGif)

private void btnDonate_Click(object sender, RoutedEventArgs e)
{
System.Diagnostics.Process.Start("https://www.buymeacoffee.com/lay295");
System.Diagnostics.Process.Start(new ProcessStartInfo("https://www.buymeacoffee.com/lay295") { UseShellExecute = true });
}

private void btnSettings_Click(object sender, RoutedEventArgs e)
Expand Down

0 comments on commit e7d4355

Please sign in to comment.