Fix feed inspector name editing
This commit is contained in:
parent
7316ceed9d
commit
d59b5016de
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue