The `ReleaseNotes` struct has been replaced with an extension on URL. Release Notes can now be opened on all versions of NNW.
This commit is contained in:
Stuart Breckenridge
2020-08-15 15:01:00 +08:00
parent 9218b4d95c
commit ddbf0fffb6
9 changed files with 133 additions and 67 deletions

View File

@@ -10,6 +10,7 @@ import Foundation
struct ReleaseNotes {
@available(*, unavailable, message: "Use URL.releaseNotes")
var url: URL {
var gitHub = "https://github.com/Ranchero-Software/NetNewsWire/releases/tag/"
#if os(macOS)

View File

@@ -31,7 +31,7 @@ class SettingsModel: ObservableObject {
case .netNewsWireSlack:
return URL(string: "https://ranchero.com/netnewswire/slack")!
case .releaseNotes:
return ReleaseNotes().url
return URL.releaseNotes
case .none:
return nil
}