Store feed.editedName in ODB.

This commit is contained in:
Brent Simmons 2018-09-15 11:39:33 -07:00
parent 0f59b904ef
commit ce1fe6ed1f

View File

@ -84,8 +84,14 @@ public final class Feed: DisplayNameProvider, UnreadCountProvider, Hashable {
} }
public var editedName: String? { public var editedName: String? {
didSet { get {
postDisplayNameDidChangeNotification() return settingsTable.string(for: Key.editedName)
}
set {
if newValue != editedName {
settingsTable.setString(newValue, for: Key.editedName)
postDisplayNameDidChangeNotification()
}
} }
} }