From e7d4355d0b9b8bddcb2821c6e412ed0575d3639d Mon Sep 17 00:00:00 2001 From: lay295 Date: Tue, 25 Oct 2022 19:17:08 -0500 Subject: [PATCH] fix donate button crash --- TwitchDownloaderWPF/PageChatDownload.xaml.cs | 3 ++- TwitchDownloaderWPF/PageChatRender.xaml.cs | 2 +- TwitchDownloaderWPF/PageClipDownload.xaml.cs | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/TwitchDownloaderWPF/PageChatDownload.xaml.cs b/TwitchDownloaderWPF/PageChatDownload.xaml.cs index 6dde560d..36ed99c6 100644 --- a/TwitchDownloaderWPF/PageChatDownload.xaml.cs +++ b/TwitchDownloaderWPF/PageChatDownload.xaml.cs @@ -27,6 +27,7 @@ using TwitchDownloader; using TwitchDownloader.Properties; using TwitchDownloaderCore.TwitchObjects; +using System.Diagnostics; namespace TwitchDownloaderWPF { @@ -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) diff --git a/TwitchDownloaderWPF/PageChatRender.xaml.cs b/TwitchDownloaderWPF/PageChatRender.xaml.cs index dcb1919f..17d29c42 100644 --- a/TwitchDownloaderWPF/PageChatRender.xaml.cs +++ b/TwitchDownloaderWPF/PageChatRender.xaml.cs @@ -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) diff --git a/TwitchDownloaderWPF/PageClipDownload.xaml.cs b/TwitchDownloaderWPF/PageClipDownload.xaml.cs index dd7c129a..152d8ef6 100644 --- a/TwitchDownloaderWPF/PageClipDownload.xaml.cs +++ b/TwitchDownloaderWPF/PageClipDownload.xaml.cs @@ -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; @@ -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)