mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 08:42:51 +00:00
Preserve custom feed titles from imported OPML across refreshes. Fixes #609.
This commit is contained in:
1 parent
936176c6a8
commit
691921876f
1 file changed
+3
-2
@@ -650,8 +650,9 @@ public enum FetchType {
|
||||
let settings = feedSettings(feedURL: feedURL, feedID: feedURL)
|
||||
let feed = Feed(account: self, url: opmlFeedSpecifier.feedURL, settings: settings)
|
||||
if let feedTitle = opmlFeedSpecifier.title {
|
||||
if feed.name == nil {
|
||||
feed.name = feedTitle
|
||||
// Store as editedName so the imported title survives the next refresh, which overwrites name with the feed's own title.
|
||||
if feed.editedName == nil {
|
||||
feed.editedName = feedTitle
|
||||
}
|
||||
}
|
||||
return feed
|
||||
|
||||
Reference in new issue
Block a user