Skip to content

Commit a446a18

Browse files
committed
Adding main actor to savePatterns function in IgnorePatternModel per a PR issue
1 parent 97bbefb commit a446a18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CodeEdit/Features/Settings/Pages/SourceControlSettings/Models/IgnorePatternModel.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ class IgnorePatternModel: ObservableObject {
138138
}
139139

140140
/// Saves the current patterns back to the Git ignore file.
141+
@MainActor
141142
func savePatterns() {
142143
// Cancel the existing task if it exists
143144
savingTask?.cancel()

0 commit comments

Comments
 (0)