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,13 +96,17 @@ struct FeedInspectorView : View {
var name: String { var name: String {
get { get {
return feed.editedName ?? feed.name ?? "" return feed.editedName ?? ""
} }
set { set {
objectWillChange.send() objectWillChange.send()
if newValue.isEmpty {
feed.editedName = nil
} else {
feed.editedName = newValue feed.editedName = newValue
} }
} }
}
var isArticleExtractorAlwaysOn: Bool { var isArticleExtractorAlwaysOn: Bool {
get { get {