adds (old version) to other NNW entries

This commit is contained in:
Stuart Breckenridge 2020-07-12 21:47:29 +08:00
parent 2636a5cc72
commit 235da781db
No known key found for this signature in database
GPG Key ID: 79BD673276AE83CE

View File

@ -22,12 +22,18 @@ struct GeneralPreferencesView: View {
.tag(interval.rawValue)
})
})
.frame(width: 300, alignment: .center)
Picker("Default RSS reader", selection: $preferences.readerSelection, content: {
ForEach(0..<preferences.rssReaders.count, content: { index in
if index > 0 && preferences.rssReaders[index].nameMinusAppSuffix.contains("NetNewsWire") {
Text(preferences.rssReaders[index].nameMinusAppSuffix.appending(" (old version)"))
} else {
Text(preferences.rssReaders[index].nameMinusAppSuffix)
.tag(index)
}
})
})