From 0d82a605ce0c9e29d6422b817f6a401c3ed1da6b Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Sun, 24 Mar 2024 16:06:09 -0400 Subject: [PATCH] Fix queue button remaining disabled on error --- TwitchDownloaderWPF/WindowUrlList.xaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TwitchDownloaderWPF/WindowUrlList.xaml.cs b/TwitchDownloaderWPF/WindowUrlList.xaml.cs index 767eb1b1..7c237050 100644 --- a/TwitchDownloaderWPF/WindowUrlList.xaml.cs +++ b/TwitchDownloaderWPF/WindowUrlList.xaml.cs @@ -49,6 +49,7 @@ private async void btnQueue_Click(object sender, RoutedEventArgs e) if (invalidList.Count > 0) { MessageBox.Show(Translations.Strings.UnableToParseInputsMessage + Environment.NewLine + string.Join(Environment.NewLine, invalidList.ToArray()), Translations.Strings.UnableToParseInputs, MessageBoxButton.OK, MessageBoxImage.Error); + btnQueue.IsEnabled = true; return; } @@ -151,6 +152,7 @@ private async void btnQueue_Click(object sender, RoutedEventArgs e) if (errorList.Count > 0) { MessageBox.Show(Translations.Strings.UnableToGetInfoMessage + Environment.NewLine + string.Join(Environment.NewLine, errorList.ToArray()), Translations.Strings.UnableToGetInfo, MessageBoxButton.OK, MessageBoxImage.Error); + btnQueue.IsEnabled = true; return; }