From 35cae5ee3bd15c6295f6a5d9727cd60c6b0a4b05 Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Sat, 3 Aug 2024 15:03:27 -0400 Subject: [PATCH 1/4] Fix potential NRE --- TwitchDownloaderWPF/Utils/WpfTaskProgress.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TwitchDownloaderWPF/Utils/WpfTaskProgress.cs b/TwitchDownloaderWPF/Utils/WpfTaskProgress.cs index 02a8fae3..8e145d48 100644 --- a/TwitchDownloaderWPF/Utils/WpfTaskProgress.cs +++ b/TwitchDownloaderWPF/Utils/WpfTaskProgress.cs @@ -145,14 +145,14 @@ public void LogInfo(string logMessage) { if ((_logLevel & LogLevel.Info) == 0) return; - _handleLog.Invoke(logMessage); + _handleLog?.Invoke(logMessage); } public void LogInfo(DefaultInterpolatedStringHandler logMessage) { if ((_logLevel & LogLevel.Info) == 0) return; - _handleLog.Invoke(logMessage.ToStringAndClear()); + _handleLog?.Invoke(logMessage.ToStringAndClear()); } public void LogWarning(string logMessage) From ed250779731565ee109b2505057bb72c235f00f6 Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Sat, 3 Aug 2024 15:04:07 -0400 Subject: [PATCH 2/4] Support displaying detailed statuses in task queue --- TwitchDownloaderWPF/PageQueue.xaml | 2 +- TwitchDownloaderWPF/TwitchTasks/ChatDownloadTask.cs | 12 ++++++++++-- TwitchDownloaderWPF/TwitchTasks/ChatRenderTask.cs | 12 ++++++++++-- TwitchDownloaderWPF/TwitchTasks/ChatUpdateTask.cs | 12 ++++++++++-- TwitchDownloaderWPF/TwitchTasks/ClipDownloadTask.cs | 12 ++++++++++-- TwitchDownloaderWPF/TwitchTasks/ITwitchTask.cs | 1 + TwitchDownloaderWPF/TwitchTasks/VodDownloadTask.cs | 12 ++++++++++-- TwitchDownloaderWPF/Utils/WpfTaskProgress.cs | 4 ++-- 8 files changed, 54 insertions(+), 13 deletions(-) diff --git a/TwitchDownloaderWPF/PageQueue.xaml b/TwitchDownloaderWPF/PageQueue.xaml index 3e5e1534..cb02a79d 100644 --- a/TwitchDownloaderWPF/PageQueue.xaml +++ b/TwitchDownloaderWPF/PageQueue.xaml @@ -71,7 +71,7 @@ - +