mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
Hiding remove context menu when there are no colors in the history (#8328)
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
SelectedIndex="{Binding SelectedColorIndex}"
|
SelectedIndex="{Binding SelectedColorIndex}"
|
||||||
ItemContainerStyle="{DynamicResource ColorHistoryListViewStyle}">
|
ItemContainerStyle="{DynamicResource ColorHistoryListViewStyle}">
|
||||||
<ui:ListView.ContextMenu>
|
<ui:ListView.ContextMenu>
|
||||||
<ContextMenu>
|
<ContextMenu Visibility="{Binding ColorsHistory.Count, Converter={StaticResource numberToVisibilityConverter}}">
|
||||||
<MenuItem Header="{x:Static p:Resources.Remove}"
|
<MenuItem Header="{x:Static p:Resources.Remove}"
|
||||||
Command="{Binding RemoveColorCommand}">
|
Command="{Binding RemoveColorCommand}">
|
||||||
<MenuItem.Icon>
|
<MenuItem.Icon>
|
||||||
|
|||||||
Reference in New Issue
Block a user