From f02fe8e264bb0a8980f84a642c93f82ad331f603 Mon Sep 17 00:00:00 2001 From: Alexis Drai Date: Sat, 10 Jun 2023 20:19:30 +0200 Subject: [PATCH] :broom: Clean up comments --- Graduator/Graduator/Data/UnitsStore.swift | 2 +- Graduator/Graduator/View/Views/UnitView.swift | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Graduator/Graduator/Data/UnitsStore.swift b/Graduator/Graduator/Data/UnitsStore.swift index a8ebfbe..9b1cfbc 100644 --- a/Graduator/Graduator/Data/UnitsStore.swift +++ b/Graduator/Graduator/Data/UnitsStore.swift @@ -16,7 +16,7 @@ class UnitsStore: ObservableObject { in: .userDomainMask, appropriateFor: nil, create: false - ).appendingPathComponent("my.local.data") + ).appendingPathComponent("dat.data.tho") } func load(defaultValue: [T]) async throws -> [T] { diff --git a/Graduator/Graduator/View/Views/UnitView.swift b/Graduator/Graduator/View/Views/UnitView.swift index 93dc0c6..37877bb 100644 --- a/Graduator/Graduator/View/Views/UnitView.swift +++ b/Graduator/Graduator/View/Views/UnitView.swift @@ -15,8 +15,6 @@ struct UnitView: View { @State private var showingForm: Bool = false var formVM = SubjectFormVM() - // TODO maybe later: when a subject is deleted this way, if the user clicks on 'Annuler', the deletion should be cancelled - // then update the readme accrodingly private func delete(at offsets: IndexSet) { guard let index = offsets.first else { return } let subjectVMToDelete = unitVM.SubjectsVM[index] @@ -77,10 +75,6 @@ struct UnitView: View { Button(action: { showingForm = true }) { Image(systemName: "plus") } - // FIXME this does cancel the changes made **to unit and subject** names and weights, - // but whereas names visibly revert instantaneously to old values, like we should expect, - // weights are displayed as new, cancelled values until user clicks on 'Modifier' again, when it finally takes on the true, old, value - // ... weights should visibly revert instantaneously to old values Button(action: { unitVM.isEdited = false unitsManagerVM.isAllEditable.toggle()