Add new subscribeToFeedsInNetNewsWire boolean preference, to direct the behavior of the Subscribe to Feed app extension.

This commit is contained in:
Daniel Jalkut
2021-06-21 17:51:04 -04:00
parent dc70675021
commit 75fd9e1e13
4 changed files with 102 additions and 38 deletions

View File

@@ -75,6 +75,7 @@ final class AppDefaults: ObservableObject {
static let articleTextSize = "articleTextSize"
static let openInBrowserInBackground = "openInBrowserInBackground"
static let defaultBrowserID = "defaultBrowserID"
static let subscribeToFeedsInNetNewsWire = "subscribeToFeedsInNetNewsWire"
static let checkForUpdatesAutomatically = "checkForUpdatesAutomatically"
static let downloadTestBuilds = "downloadTestBuild"
static let sendCrashLogs = "sendCrashLogs"
@@ -265,7 +266,13 @@ final class AppDefaults: ObservableObject {
objectWillChange.send()
}
}
@AppStorage(wrappedValue: false, Key.subscribeToFeedsInNetNewsWire, store: store) var subscribeToFeedsInNetNewsWire: Bool {
didSet {
objectWillChange.send()
}
}
@AppStorage(Key.showTitleOnMainWindow, store: store) var showTitleOnMainWindow: Bool? {
didSet {
objectWillChange.send()