From 8ff2942820b2647e684549ea8b0a0dd7b16d4f4a Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Fri, 29 Dec 2023 23:30:09 -0500 Subject: [PATCH] Little changes --- TwitchDownloaderCLI/Program.cs | 2 +- TwitchDownloaderWPF/WindowMassDownload.xaml.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TwitchDownloaderCLI/Program.cs b/TwitchDownloaderCLI/Program.cs index 93b810d7..f6e4aabe 100644 --- a/TwitchDownloaderCLI/Program.cs +++ b/TwitchDownloaderCLI/Program.cs @@ -21,7 +21,7 @@ private static void Main(string[] args) var parser = new Parser(config => { config.CaseInsensitiveEnumValues = true; - config.HelpWriter = TextWriter.Null; + config.HelpWriter = null; // Use null instead of TextWriter.Null due to how CommandLine works internally }); var parserResult = parser.ParseArguments(preParsedArgs); diff --git a/TwitchDownloaderWPF/WindowMassDownload.xaml.cs b/TwitchDownloaderWPF/WindowMassDownload.xaml.cs index dfffdbe4..254f4820 100644 --- a/TwitchDownloaderWPF/WindowMassDownload.xaml.cs +++ b/TwitchDownloaderWPF/WindowMassDownload.xaml.cs @@ -49,13 +49,13 @@ private async void btnChannel_Click(object sender, RoutedEventArgs e) await ChangeCurrentChannel(); } - private async Task ChangeCurrentChannel() + private Task ChangeCurrentChannel() { currentChannel = textChannel.Text; videoList.Clear(); cursorList.Clear(); cursorIndex = -1; - await UpdateList(); + return UpdateList(); } private async Task UpdateList()