summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views/QueueView.xaml
diff options
context:
space:
mode:
authorsr55 <sr55.hb@outlook.com>2019-06-24 21:15:49 +0100
committersr55 <sr55.hb@outlook.com>2019-06-24 21:16:01 +0100
commitb52b25d167d76106c8666c788c17e7a33f713f4d (patch)
treea01ff14c78959c9b4151819c78e46701c1cbf53b /win/CS/HandBrakeWPF/Views/QueueView.xaml
parent1613a41853551dedc5b3219f05ed32aacbc85b79 (diff)
WinGui: Refactor "When Done" to use an enum to avoid language issues. Also change "suspend" to "sleep" to be consistent with the OS. Fixes #2162
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/QueueView.xaml')
-rw-r--r--win/CS/HandBrakeWPF/Views/QueueView.xaml30
1 files changed, 15 insertions, 15 deletions
diff --git a/win/CS/HandBrakeWPF/Views/QueueView.xaml b/win/CS/HandBrakeWPF/Views/QueueView.xaml
index bc4f0e447..43f851028 100644
--- a/win/CS/HandBrakeWPF/Views/QueueView.xaml
+++ b/win/CS/HandBrakeWPF/Views/QueueView.xaml
@@ -293,7 +293,7 @@
Text="{x:Static Properties:Resources.QueueView_WhenDone}" />
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
- Content="{Binding WhenDoneAction}" />
+ Content="{Binding WhenDoneAction, Converter={StaticResource enumComboConverter}}" />
<Path Height="5"
Margin="2,2,2,0"
Data="M 0 0 L 4 4 L 8 0 Z"
@@ -302,26 +302,26 @@
</MenuItem.Header>
<MenuItem x:Name="doNothing"
- cal:Message.Attach="[Event Click] = [Action WhenDone(doNothing.Header)]"
- Header="{x:Static Properties:Resources.QueueView_DoNothing}" />
+ cal:Message.Attach="[Event Click] = [Action WhenDone(0)]"
+ Header="{x:Static Properties:Resources.WhenDone_DoNothing}" />
<MenuItem x:Name="shutdown"
- cal:Message.Attach="[Event Click] = [Action WhenDone(shutdown.Header)]"
- Header="{x:Static Properties:Resources.QueueView_Shutdown}" />
+ cal:Message.Attach="[Event Click] = [Action WhenDone(1)]"
+ Header="{x:Static Properties:Resources.WhenDone_Shutdown}" />
<MenuItem x:Name="suspend"
- cal:Message.Attach="[Event Click] = [Action WhenDone(suspend.Header)]"
- Header="{x:Static Properties:Resources.QueueView_Suspend}" />
+ cal:Message.Attach="[Event Click] = [Action WhenDone(2)]"
+ Header="{x:Static Properties:Resources.WhenDone_Suspend}" />
<MenuItem x:Name="hibernate"
- cal:Message.Attach="[Event Click] = [Action WhenDone(hibernate.Header)]"
- Header="{x:Static Properties:Resources.QueueView_Hibernate}"/>
+ cal:Message.Attach="[Event Click] = [Action WhenDone(3)]"
+ Header="{x:Static Properties:Resources.WhenDone_Hibernate}"/>
<MenuItem x:Name="lock"
- cal:Message.Attach="[Event Click] = [Action WhenDone(lock.Header)]"
- Header="{x:Static Properties:Resources.QueueView_LockSystem}" />
+ cal:Message.Attach="[Event Click] = [Action WhenDone(4)]"
+ Header="{x:Static Properties:Resources.WhenDone_LockSystem}" />
<MenuItem x:Name="logoff"
- cal:Message.Attach="[Event Click] = [Action WhenDone(logoff.Header)]"
- Header="{x:Static Properties:Resources.QueueView_Logoff}"/>
+ cal:Message.Attach="[Event Click] = [Action WhenDone(5)]"
+ Header="{x:Static Properties:Resources.WhenDone_Logoff}"/>
<MenuItem x:Name="quit"
- cal:Message.Attach="[Event Click] = [Action WhenDone(quit.Header)]"
- Header="{x:Static Properties:Resources.QueueView_QuitHandBrake}"/>
+ cal:Message.Attach="[Event Click] = [Action WhenDone(6)]"
+ Header="{x:Static Properties:Resources.WhenDone_QuitHandBrake}"/>
</MenuItem>
</Menu>
</Border>