Skip to content

Commit

Permalink
Hide the Update Now menu item even before the updater is initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
nachmore committed Feb 28, 2021
1 parent e234bbd commit 06fcf89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ChimeHelper/ChimeHelperUX/TrayIconResource.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
</Grid>
</Border>

<Border Height="30" Background="OrangeRed" Visibility="{Binding UpdateState.UpdateAvailable, Converter={StaticResource BoolToVisibilityConverter}}">
<Border Height="30" Background="OrangeRed" Visibility="{Binding UpdateState.UpdateAvailable, Converter={StaticResource BoolToVisibilityConverter}, TargetNullValue=Collapsed, FallbackValue=Collapsed}">

<StackPanel VerticalAlignment="Center">
<TextBlock HorizontalAlignment="Center" FontSize="16" FontWeight="Bold">
Expand Down Expand Up @@ -454,7 +454,7 @@
<ContextMenu
Background="#192a38" Foreground="White" Margin="0" BorderBrush="#007980" BorderThickness="1" ItemTemplate="{StaticResource MenuItemTemplate}" UsesItemContainerTemplate="True">

<MenuItem Header="Update Available!" Foreground="OrangeRed" Command="{Binding UpdateNowCommand}" Visibility="{Binding UpdateState.UpdateAvailable, Converter={StaticResource BoolToVisibilityConverter}}"/>
<MenuItem Header="Update Available!" Foreground="OrangeRed" Command="{Binding UpdateNowCommand}" Visibility="{Binding UpdateState.UpdateAvailable, Converter={StaticResource BoolToVisibilityConverter}, FallbackValue=Collapsed, TargetNullValue=Collapsed}"/>
<Separator Visibility="{Binding UpdateState.UpdateAvailable, Converter={StaticResource BoolToVisibilityConverter}}"/>

<MenuItem Header="Start Meeting (Personal ID)" Command="{Binding StartMeetingMenuCommand}"/>
Expand Down

0 comments on commit 06fcf89

Please sign in to comment.