Skip to content

Commit

Permalink
(chocolatey#770) Hide button for displaying arguments
Browse files Browse the repository at this point in the history
This commit updates the package view to hide the button for
displaying package arguments when it is not displayed.
  • Loading branch information
AdmiringWorm committed Jan 27, 2022
1 parent 448c8b1 commit e601182
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/ChocolateyGui.Common.Windows/Views/PackageView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
Background="{DynamicResource MahApps.Brushes.Accent4}">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,20,10">
<Button Padding="10" Margin="5 0"
Command="{commands:DataContextCommandAdapter ShowArguments}">
Command="{commands:DataContextCommandAdapter ShowArguments}"
Visibility="{Binding IsInstalled, Converter={StaticResource BooleanToVisibility}, ConverterParameter=False}">
<StackPanel Orientation="Horizontal">
<iconPacks:PackIconEntypo Kind="Info" Margin="0 0 5 0 " VerticalAlignment="Center" />
<TextBlock Text="{lang:Localize PackageView_ButtonPackageArguments}" FontSize="16"/>
Expand Down

0 comments on commit e601182

Please sign in to comment.