mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 05:35:00 +00:00
enhance: add a button to clear all git command logs
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
c1e31ac4e3
commit
021aab8408
6 changed files with 22 additions and 5 deletions
|
@ -4,6 +4,7 @@
|
|||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:vm="using:SourceGit.ViewModels"
|
||||
xmlns:v="using:SourceGit.Views"
|
||||
xmlns:c="using:SourceGit.Converters"
|
||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||
x:Class="SourceGit.Views.ViewLogs"
|
||||
x:DataType="vm:ViewLogs"
|
||||
|
@ -13,7 +14,7 @@
|
|||
Width="800" Height="500"
|
||||
CanResize="False"
|
||||
WindowStartupLocation="CenterOwner">
|
||||
<Grid RowDefinitions="Auto,*">
|
||||
<Grid RowDefinitions="Auto,*,Auto">
|
||||
<!-- TitleBar -->
|
||||
<Grid Grid.Row="0" Height="28" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}">
|
||||
<Border Background="{DynamicResource Brush.TitleBar}"
|
||||
|
@ -108,5 +109,13 @@
|
|||
FontFamily="{DynamicResource Fonts.Monospace}"/>
|
||||
</Border>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Row="2" Margin="0,0,0,8">
|
||||
<Button Classes="flat primary"
|
||||
Content="{DynamicResource Text.ViewLogs.Clear}"
|
||||
HorizontalAlignment="Center"
|
||||
Command="{Binding ClearAll}"
|
||||
IsEnabled="{Binding Logs.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</v:ChromelessWindow>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue