Skip to content

Commit a932727

Browse files
committed
enhance: disable LOCAL CHANGES and STASHES for bare repository (#899)
1 parent 5acc6e6 commit a932727

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Views/Repository.axaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<!-- Page Switcher for Right Panel -->
4141
<Border Grid.Row="0" Margin="8,0,4,0" BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}" CornerRadius="6">
4242
<Border CornerRadius="6" ClipToBounds="True">
43-
<ListBox Background="Transparent" SelectedIndex="{Binding SelectedViewIndex, Mode=TwoWay}">
43+
<ListBox Background="Transparent" SelectedIndex="{Binding SelectedViewIndex, Mode=TwoWay}" SelectionMode="AlwaysSelected">
4444
<ListBox.Styles>
4545
<Style Selector="Path.icon">
4646
<Setter Property="Width" Value="12"/>
@@ -128,7 +128,7 @@
128128
</Grid>
129129
</ListBoxItem>
130130

131-
<ListBoxItem>
131+
<ListBoxItem IsVisible="{Binding !IsBare}">
132132
<Grid Classes="view_mode" ColumnDefinitions="Auto,*,Auto">
133133
<Path Grid.Column="0" Classes="icon" Data="{StaticResource Icons.Changes}"/>
134134
<TextBlock Grid.Column="1" Classes="header" Text="{DynamicResource Text.WorkingCopy}"/>
@@ -143,7 +143,7 @@
143143
</Grid>
144144
</ListBoxItem>
145145

146-
<ListBoxItem>
146+
<ListBoxItem IsVisible="{Binding !IsBare}">
147147
<Grid Classes="view_mode" ColumnDefinitions="Auto,*,Auto">
148148
<Path Grid.Column="0" Classes="icon" Data="{StaticResource Icons.Stashes}"/>
149149
<TextBlock Grid.Column="1" Classes="header" Text="{DynamicResource Text.Stashes}"/>

0 commit comments

Comments
 (0)