From afcfefa23ee52610ae10ca6c7ba6f45e4b04ef80 Mon Sep 17 00:00:00 2001
From: lay295 <fizzohd@gmail.com>
Date: Fri, 25 Jun 2021 16:31:18 -0400
Subject: [PATCH] Fix chat download options for clips

---
 TwitchDownloaderCore/ChatRenderer.cs           |  2 +-
 TwitchDownloaderWPF/PageChatDownload.xaml.cs   | 10 +++++-----
 TwitchDownloaderWPF/Properties/AssemblyInfo.cs |  2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/TwitchDownloaderCore/ChatRenderer.cs b/TwitchDownloaderCore/ChatRenderer.cs
index 3338c493..717bf985 100644
--- a/TwitchDownloaderCore/ChatRenderer.cs
+++ b/TwitchDownloaderCore/ChatRenderer.cs
@@ -187,7 +187,7 @@ private void RenderVideo(ChatRenderOptions renderOptions, Queue<TwitchComment> f
             {
                 int startSeconds = (int)Math.Floor(chatJson.video.start);
                 int firstCommentSeconds = (int)Math.Floor(chatJson.comments.First().content_offset_seconds);
-                videoStart = startSeconds < firstCommentSeconds ? startSeconds : firstCommentSeconds;
+                videoStart = startSeconds;
                 duration = (int)Math.Ceiling(chatJson.video.end) - videoStart;
             }
             else
diff --git a/TwitchDownloaderWPF/PageChatDownload.xaml.cs b/TwitchDownloaderWPF/PageChatDownload.xaml.cs
index c6fce6ab..89fdf4c5 100644
--- a/TwitchDownloaderWPF/PageChatDownload.xaml.cs
+++ b/TwitchDownloaderWPF/PageChatDownload.xaml.cs
@@ -62,13 +62,13 @@ private void SetEnabled(bool isEnabled, bool onlyCrop)
             numEndHour.IsEnabled = isEnabled;
             numEndMinute.IsEnabled = isEnabled;
             numEndSecond.IsEnabled = isEnabled;
-            checkEmbed.IsEnabled = isEnabled;
-            radioRelative.IsEnabled = isEnabled;
-            radioUTC.IsEnabled = isEnabled;
-            radioNone.IsEnabled = isEnabled;
-
+            
             if (!onlyCrop)
             {
+                radioRelative.IsEnabled = isEnabled;
+                radioUTC.IsEnabled = isEnabled;
+                radioNone.IsEnabled = isEnabled;
+                checkEmbed.IsEnabled = isEnabled;
                 btnDownload.IsEnabled = isEnabled;
                 radioJson.IsEnabled = isEnabled;
                 radioText.IsEnabled = isEnabled;
diff --git a/TwitchDownloaderWPF/Properties/AssemblyInfo.cs b/TwitchDownloaderWPF/Properties/AssemblyInfo.cs
index b159b4ed..0faf5312 100644
--- a/TwitchDownloaderWPF/Properties/AssemblyInfo.cs
+++ b/TwitchDownloaderWPF/Properties/AssemblyInfo.cs
@@ -51,5 +51,5 @@
 // You can specify all the values or you can default the Build and Revision Numbers
 // by using the '*' as shown below:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.39.9.0")]
+[assembly: AssemblyVersion("1.39.10.0")]
 [assembly: AssemblyFileVersion("1.0.0.0")]