Skip to content

Commit

Permalink
Fix queue button remaining disabled on error
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Mar 24, 2024
1 parent 18b5121 commit 0d82a60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TwitchDownloaderWPF/WindowUrlList.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 0d82a60

Please sign in to comment.