Skip to content

Commit

Permalink
Fix vod download trim radio buttons always being enabled (#1119)
Browse files Browse the repository at this point in the history
* Fix vod download trim radio buttons always being enabled

* Adjust margin
  • Loading branch information
ScrubN authored Jun 30, 2024
1 parent e5dc67d commit ceda7a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/PageVodDownload.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<TextBlock Text="{lex:Loc Length}" HorizontalAlignment="Right" Foreground="{DynamicResource AppText}" />
<TextBlock Text="{lex:Loc Quality}" HorizontalAlignment="Right" Margin="0,15,0,0" Foreground="{DynamicResource AppText}" />
<TextBlock HorizontalAlignment="Right" Margin="0,15,0,0" Foreground="{DynamicResource AppText}"><Run Text="{lex:Loc VideoTrimMode}"/><Hyperlink ToolTipService.ShowDuration="30000" Foreground="{DynamicResource AppHyperlink}"><Hyperlink.ToolTip><Run Text="{lex:Loc VideoTrimModeTooltip}"/></Hyperlink.ToolTip>(?)</Hyperlink>:</TextBlock>
<TextBlock Text="{lex:Loc TrimVideo}" HorizontalAlignment="Right" Margin="0,11,0,0" Foreground="{DynamicResource AppText}" />
<TextBlock Text="{lex:Loc TrimVideo}" HorizontalAlignment="Right" Margin="0,10,0,0" Foreground="{DynamicResource AppText}" />
<TextBlock Text="{lex:Loc VideoDownloadThreads}" HorizontalAlignment="Right" Margin="0,46,0,0" Foreground="{DynamicResource AppText}" />
<TextBlock HorizontalAlignment="Right" Margin="0,21,0,0" Foreground="{DynamicResource AppText}"><Run Text="{lex:Loc Oauth}"/><Hyperlink NavigateUri="https://www.youtube.com/watch?v=1MBsUoFGuls" RequestNavigate="Hyperlink_RequestNavigate" ToolTipService.ShowDuration="30000" Foreground="{DynamicResource AppHyperlink}"><Hyperlink.ToolTip><Run Text="{lex:Loc OauthTooltip}"/></Hyperlink.ToolTip>(?)</Hyperlink>:</TextBlock>
</StackPanel>
Expand Down
2 changes: 2 additions & 0 deletions TwitchDownloaderWPF/PageVodDownload.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ private void SetEnabled(bool isEnabled)
checkEnd.IsEnabled = isEnabled;
SplitBtnDownload.IsEnabled = isEnabled;
MenuItemEnqueue.IsEnabled = isEnabled;
RadioTrimSafe.IsEnabled = isEnabled;
RadioTrimExact.IsEnabled = isEnabled;
SetEnabledTrimStart(isEnabled & checkStart.IsChecked.GetValueOrDefault());
SetEnabledTrimEnd(isEnabled & checkEnd.IsChecked.GetValueOrDefault());
}
Expand Down

0 comments on commit ceda7a2

Please sign in to comment.