Store feed.editedName in ODB.
This commit is contained in:
parent
0f59b904ef
commit
ce1fe6ed1f
|
@ -84,8 +84,14 @@ public final class Feed: DisplayNameProvider, UnreadCountProvider, Hashable {
|
|||
}
|
||||
|
||||
public var editedName: String? {
|
||||
didSet {
|
||||
postDisplayNameDidChangeNotification()
|
||||
get {
|
||||
return settingsTable.string(for: Key.editedName)
|
||||
}
|
||||
set {
|
||||
if newValue != editedName {
|
||||
settingsTable.setString(newValue, for: Key.editedName)
|
||||
postDisplayNameDidChangeNotification()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue