Skip to content

Commit cec6287

Browse files
authored
Fix: Prevent git popup when Source Control is disabled (#2138) (#2148)
1 parent 78c3be9 commit cec6287

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CodeEdit/WorkspaceView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ struct WorkspaceView: View {
8585
// MARK: - Source Control
8686

8787
.task {
88+
// Only refresh git data if source control is enabled
89+
guard sourceControlIsEnabled else { return }
90+
8891
do {
8992
try await sourceControlManager.refreshRemotes()
9093
try await sourceControlManager.refreshStashEntries()

0 commit comments

Comments
 (0)