fix: try to fix issue #338

* upgrade Avalonia to `11.1.3`
* use reactive property instead of simple getter
This commit is contained in:
leo 2024-08-13 17:38:58 +08:00
parent 34a598d421
commit f3406e93fc
No known key found for this signature in database
5 changed files with 30 additions and 23 deletions

View file

@ -97,8 +97,8 @@
CornerRadius="9"
VerticalAlignment="Center"
Background="{DynamicResource Brush.Badge}"
IsVisible="{Binding WorkingCopyChangesCount, Converter={x:Static c:IntConverters.IsGreaterThanZero}}">
<TextBlock Classes="primary" FontSize="10" HorizontalAlignment="Center" Margin="9,0" Text="{Binding WorkingCopyChangesCount}" Foreground="{DynamicResource Brush.BadgeFG}"/>
IsVisible="{Binding LocalChangesCount, Converter={x:Static c:IntConverters.IsGreaterThanZero}}">
<TextBlock Classes="primary" FontSize="10" HorizontalAlignment="Center" Margin="9,0" Text="{Binding LocalChangesCount}" Foreground="{DynamicResource Brush.BadgeFG}"/>
</Border>
</Grid>
</ListBoxItem>