We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee5213e commit 9e2a707Copy full SHA for 9e2a707
src/Files.App/Data/Models/DirectoryPropertiesViewModel.cs
@@ -38,7 +38,8 @@ public int SelectedBranchIndex
38
{
39
if (SetProperty(ref _SelectedBranchIndex, value) &&
40
value != -1 &&
41
- (value != ACTIVE_BRANCH_INDEX || !_ShowLocals))
+ (value != ACTIVE_BRANCH_INDEX || !_ShowLocals) &&
42
+ value < BranchesNames.Count)
43
44
CheckoutRequested?.Invoke(this, BranchesNames[value]);
45
}
0 commit comments