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