enhance: use ~ to represent the home dir of current user

This commit is contained in:
leo 2024-09-22 11:00:30 +08:00
parent 0b6ecc0388
commit 81b72f7c1c
No known key found for this signature in database
2 changed files with 19 additions and 4 deletions

View file

@ -140,7 +140,7 @@
Margin="8,0"
HorizontalAlignment="Right" VerticalAlignment="Center"
Foreground="{DynamicResource Brush.FG2}"
Text="{Binding Id}"
Text="{Binding Id, Converter={x:Static c:PathConverters.RelativeToHome}}"
IsVisible="{Binding IsRepository}"/>
</Grid>
</DataTemplate>