Store feed.editedName in ODB.

This commit is contained in:
Brent Simmons 2018-09-15 11:39:33 -07:00
parent 0f59b904ef
commit ce1fe6ed1f
1 changed files with 8 additions and 2 deletions

View File

@ -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()
}
}
}