Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
drpeterrohde committed Oct 16, 2022
1 parent 27db31d commit 6c881d0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions MoodSnap/MainViews/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,11 @@ struct SettingsView: View {
}
}.alert(isPresented: $showingDeleteData) {
Alert(title: Text("sure_delete"), message: Text("cant_be_undone"), primaryButton: .destructive(Text("delete")) {
data.stopProcessing()
data.moodSnaps = []
data.startProcessing()
DispatchQueue.main.async {
data.stopProcessing()
data.moodSnaps = []
data.startProcessing()
}
dismiss()
}, secondaryButton: .cancel())
}
Expand Down

0 comments on commit 6c881d0

Please sign in to comment.