mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fixes #2335
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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user