Fix feed inspector name editing

This commit is contained in:
Maurice Parker 2019-09-30 11:42:11 -05:00
parent 7316ceed9d
commit d59b5016de
1 changed files with 6 additions and 2 deletions

View File

@ -96,11 +96,15 @@ struct FeedInspectorView : View {
var name: String {
get {
return feed.editedName ?? feed.name ?? ""
return feed.editedName ?? ""
}
set {
objectWillChange.send()
feed.editedName = newValue
if newValue.isEmpty {
feed.editedName = nil
} else {
feed.editedName = newValue
}
}
}