Skip to content

Commit f2b1c06

Browse files
committed
enhance: disable checkout branch via double-clicking branch tree node (#899)
1 parent 766b60d commit f2b1c06

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ViewModels/Repository.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,9 @@ public void CheckoutBranch(Models.Branch branch)
10621062
}
10631063
}
10641064

1065+
if (IsBare)
1066+
return;
1067+
10651068
if (!CanCreatePopup())
10661069
return;
10671070

0 commit comments

Comments
 (0)