{\r
foreach (SubtitleTrack track in this.Task.SubtitleTracks)\r
{\r
+ if (track == subtitle)\r
+ {\r
+ continue; // Skip the track the user selected.\r
+ }\r
track.Default = false;\r
}\r
- subtitle.Default = true;\r
\r
this.NotifyOfPropertyChange(() => this.Task);\r
}\r
{\r
foreach (SubtitleTrack track in this.Task.SubtitleTracks)\r
{\r
+ if (track == subtitle)\r
+ {\r
+ continue; // Skip the track the user selected.\r
+ }\r
track.Burned = false;\r
}\r
- subtitle.Burned = true;\r
this.NotifyOfPropertyChange(() => this.Task);\r
}\r
\r
<TextBlock Text="{Binding SrtFileName}" Grid.Column="1" VerticalAlignment="Center"\r
Visibility="{Binding IsSrtSubtitle, Converter={StaticResource booleanToVisConverter}, ConverterParameter=false}" />\r
\r
- <TextBlock Text="Forced Only" FontWeight="Bold" Grid.Column="2" VerticalAlignment="Center" />\r
- <CheckBox Grid.Column="3" IsChecked="{Binding Forced}" VerticalAlignment="Center" Margin="5,0,5,0"/>\r
- <TextBlock Text="Burn In" FontWeight="Bold" Grid.Column="4" VerticalAlignment="Center" />\r
- <CheckBox Grid.Column="5" IsChecked="{Binding Burned}" VerticalAlignment="Center" Margin="5,0,5,0">\r
+ <TextBlock Text="Forced Only" FontWeight="Bold" Grid.Column="2" VerticalAlignment="Center"\r
+ Visibility="{Binding IsSrtSubtitle, Converter={StaticResource booleanToVisConverter}, ConverterParameter=true}" />\r
+ <CheckBox Grid.Column="3" IsChecked="{Binding Forced}" VerticalAlignment="Center" Margin="5,0,5,0"\r
+ Visibility="{Binding IsSrtSubtitle, Converter={StaticResource booleanToVisConverter}, ConverterParameter=true}" />\r
+ <TextBlock Text="Burn In" FontWeight="Bold" Grid.Column="4" VerticalAlignment="Center"\r
+ Visibility="{Binding IsSrtSubtitle, Converter={StaticResource booleanToVisConverter}, ConverterParameter=true}"/>\r
+ <CheckBox Grid.Column="5" IsChecked="{Binding Burned}" VerticalAlignment="Center" Margin="5,0,5,0"\r
+ Visibility="{Binding IsSrtSubtitle, Converter={StaticResource booleanToVisConverter}, ConverterParameter=true}">\r
<i:Interaction.Triggers>\r
<i:EventTrigger EventName="Click">\r
<cal:ActionMessage MethodName="SelectBurnedInTrack">\r