diff options
author | sr55 <[email protected]> | 2021-01-11 20:38:36 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2021-01-11 20:38:36 +0000 |
commit | 2b2a8efa3cf966597afa1f7097dd0c374c3204fe (patch) | |
tree | 6a48e24bdac589ff470d0eb76340c2e563929bf1 | |
parent | f28ded92e1cd87d59a688129c73c8eefb5c6dd14 (diff) |
WinGui: Minor improvement to presets. Also show the preset tooltip on the Menu items.
-rw-r--r-- | win/CS/HandBrakeWPF/Converters/PresetsMenuConverter.cs | 4 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MainView.xaml | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/PresetsMenuConverter.cs b/win/CS/HandBrakeWPF/Converters/PresetsMenuConverter.cs index ef82d2e71..50e7b61ba 100644 --- a/win/CS/HandBrakeWPF/Converters/PresetsMenuConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/PresetsMenuConverter.cs @@ -90,7 +90,7 @@ namespace HandBrakeWPF.Converters { if (groupedMenu.ContainsKey(preset.Category)) { - MenuItem newMenuItem = new MenuItem { Header = preset.Name, Tag = preset, Command = new PresetMenuSelectCommand(preset), IsEnabled = !preset.IsPresetDisabled }; + MenuItem newMenuItem = new MenuItem { Header = preset.Name, Tag = preset, Command = new PresetMenuSelectCommand(preset), IsEnabled = !preset.IsPresetDisabled, ToolTip = preset.Description }; if (preset.IsPresetDisabled) { @@ -111,7 +111,7 @@ namespace HandBrakeWPF.Converters MenuItem group = new MenuItem(); group.Header = preset.Category; - MenuItem newMenuItem = new MenuItem { Header = preset.Name, Tag = preset, Command = new PresetMenuSelectCommand(preset), IsEnabled = !preset.IsPresetDisabled }; + MenuItem newMenuItem = new MenuItem { Header = preset.Name, Tag = preset, Command = new PresetMenuSelectCommand(preset), IsEnabled = !preset.IsPresetDisabled, ToolTip = preset.Description }; if (preset.IsPresetDisabled) { diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index af1d7fd09..15719c495 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -46,6 +46,9 @@ <Setter Property="MaxWidth" Value="500" />
</Style>
+ <Style TargetType="MenuItem">
+ <Setter Property="ToolTipService.InitialShowDelay" Value="1000"/>
+ </Style>
</UserControl.Resources>
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|