commit 5af48212342d033c96ebaee7797574a00d74db90
parent 9852623bf2304cbf1f51664ddfc51d16b3a2977d
Author: FIGBERT <figbert@figbert.com>
Date: Mon, 16 Nov 2020 19:20:31 -0800
Update deprecated syntax in macOS TaskView
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/macOS/TaskView.swift b/macOS/TaskView.swift
@@ -65,12 +65,12 @@ struct TaskView: View {
self.config.showingNotes.toggle()
}
} else {
- TextField("edit task", text: $task.name) {
+ TextField("edit task", text: $task.name, onCommit: {
self.config.editingText = false
self.managedObjectContext.performAndWait {
try? self.managedObjectContext.save()
}
- }
+ })
}
Spacer()
if !config.editingPriority {