Skip to content

Commit 816aea1

Browse files
authored
Fix: Fixed issue where a crash would occur when navigating through Git repositories (#13652)
1 parent b7b9414 commit 816aea1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Files.App/UserControls/StatusBarControl.xaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,15 @@
186186
<MenuFlyout>
187187
<MenuFlyoutItem
188188
x:Name="OpenFolderInVSCodeButton"
189-
x:Load="{x:Bind Commands.OpenInVSCode.IsExecutable, Mode=OneWay}"
190189
Command="{x:Bind Commands.OpenInVSCode}"
191190
KeyboardAcceleratorTextOverride="{x:Bind Commands.OpenInVSCode.HotKeys, Mode=OneWay}"
192191
Text="{x:Bind Commands.OpenInVSCode.Label, Mode=OneWay}" />
193192
<MenuFlyoutItem
194193
x:Name="OpenRepoInVSCodeButton"
195-
x:Load="{x:Bind Commands.OpenRepoInVSCode.IsExecutable, Mode=OneWay}"
196194
Command="{x:Bind Commands.OpenRepoInVSCode}"
197195
KeyboardAcceleratorTextOverride="{x:Bind Commands.OpenRepoInVSCode.HotKeys, Mode=OneWay}"
198-
Text="{x:Bind Commands.OpenRepoInVSCode.Label, Mode=OneWay}" />
196+
Text="{x:Bind Commands.OpenRepoInVSCode.Label, Mode=OneWay}"
197+
Visibility="{x:Bind Commands.OpenRepoInVSCode.IsExecutable, Mode=OneWay}" />
199198
</MenuFlyout>
200199
</Button.Flyout>
201200
</Button>

0 commit comments

Comments
 (0)