From 092db645a325f4cd139ce97fd35c7dff3e32d8e0 Mon Sep 17 00:00:00 2001 From: Scrub <72096833+ScrubN@users.noreply.github.com> Date: Fri, 5 Jan 2024 16:26:45 -0500 Subject: [PATCH] Add right-click menu to task queue (#927) * Add ITwitchTask.CanCancel and ITwitchTask.OutputFile * Remove now redundant try-catch * Bind task cancel button enabled-ness to CanCancel Also update task button method names * PagChatRender.xaml Solid_ExclamationTriangle -> Solid_ExclamationCircle * Add Cancel, Error, Remove, and Open Folder items to task queue context menu * Update translations --- TwitchDownloaderWPF/PageChatRender.xaml | 2 +- TwitchDownloaderWPF/PageQueue.xaml | 30 +++++++- TwitchDownloaderWPF/PageQueue.xaml.cs | 76 ++++++++++++++++--- .../Translations/Strings.Designer.cs | 18 +++++ .../Translations/Strings.es.resx | 7 ++ .../Translations/Strings.fr.resx | 6 ++ .../Translations/Strings.pl.resx | 6 ++ TwitchDownloaderWPF/Translations/Strings.resx | 6 ++ .../Translations/Strings.ru.resx | 6 ++ .../Translations/Strings.tr.resx | 6 ++ .../Translations/Strings.uk.resx | 6 ++ .../Translations/Strings.zh.resx | 6 ++ .../TwitchTasks/ChatDownloadTask.cs | 16 +++- .../TwitchTasks/ChatRenderTask.cs | 16 +++- .../TwitchTasks/ChatUpdateTask.cs | 16 +++- .../TwitchTasks/ClipDownloadTask.cs | 17 ++++- .../TwitchTasks/ITwitchTask.cs | 3 +- .../TwitchTasks/VodDownloadTask.cs | 16 +++- 18 files changed, 229 insertions(+), 30 deletions(-) diff --git a/TwitchDownloaderWPF/PageChatRender.xaml b/TwitchDownloaderWPF/PageChatRender.xaml index c7560c89..fab704bd 100644 --- a/TwitchDownloaderWPF/PageChatRender.xaml +++ b/TwitchDownloaderWPF/PageChatRender.xaml @@ -170,7 +170,7 @@ - + diff --git a/TwitchDownloaderWPF/PageQueue.xaml b/TwitchDownloaderWPF/PageQueue.xaml index cfe0dca9..b337fdbb 100644 --- a/TwitchDownloaderWPF/PageQueue.xaml +++ b/TwitchDownloaderWPF/PageQueue.xaml @@ -37,6 +37,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -49,12 +73,12 @@ -