summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-06-22 21:54:01 +0100
committersr55 <[email protected]>2019-06-22 21:54:01 +0100
commit5cef11a39fc832f3110e2b3c12147a79220d7101 (patch)
treecc04f70fec3a90eee1a5d47fba9bbde3d811094e
parentf6674a9e215a48c7b3d8629f214c1efb98df0c6a (diff)
WinGui: Fix a crash caused by the themeing work.
-rw-r--r--win/CS/HandBrakeWPF/Views/Queue/Embedded.xaml5
1 files changed, 3 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Views/Queue/Embedded.xaml b/win/CS/HandBrakeWPF/Views/Queue/Embedded.xaml
index 15d3255ef..85c52e811 100644
--- a/win/CS/HandBrakeWPF/Views/Queue/Embedded.xaml
+++ b/win/CS/HandBrakeWPF/Views/Queue/Embedded.xaml
@@ -29,7 +29,8 @@
<video:EncoderOptionsTooltipConverter x:Key="encoderOptionsTooltipConverter" />
<video:VideoOptionsTooltipConverter x:Key="videoOptionsTooltipConverter" />
<queue:PictureSettingsDescConveter x:Key="pictureSettingsDescConverter" />
-
+ <Converters:ThemeImageConverter x:Key="themeConverter" />
+
<Style x:Key="LongToolTipHolder" TargetType="FrameworkElement">
<Setter Property="ToolTipService.ShowDuration" Value="10000" />
</Style>
@@ -152,7 +153,7 @@
<Style TargetType="{x:Type Image}">
<Style.Triggers>
<DataTrigger Binding="{Binding Status, Converter={StaticResource enumComboConverter}}" Value="Waiting">
- <Setter Property="Source" Value="..\Images\Movies.png" />
+ <Setter Property="Source" Value="{Binding Converter={StaticResource themeConverter}, ConverterParameter='Source.png'}" />
</DataTrigger>
<DataTrigger Binding="{Binding Status, Converter={StaticResource enumComboConverter}}" Value="In Progress">
<Setter Property="Source" Value="..\Images\Working0.png" />