mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Remember last selected account on OPML import. Issue #661
This commit is contained in:
@@ -28,6 +28,7 @@ struct AppDefaults {
|
||||
static let refreshInterval = "refreshInterval"
|
||||
static let addFeedAccountID = "addFeedAccountID"
|
||||
static let addFolderAccountID = "addFolderAccountID"
|
||||
static let importOPMLAccountID = "importOPMLAccountID"
|
||||
|
||||
// Hidden prefs
|
||||
static let showTitleOnMainWindow = "KafasisTitleMode"
|
||||
@@ -99,6 +100,15 @@ struct AppDefaults {
|
||||
}
|
||||
}
|
||||
|
||||
static var importOPMLAccountID: String? {
|
||||
get {
|
||||
return string(for: Key.importOPMLAccountID)
|
||||
}
|
||||
set {
|
||||
setString(for: Key.importOPMLAccountID, newValue)
|
||||
}
|
||||
}
|
||||
|
||||
static var showTitleOnMainWindow: Bool {
|
||||
return bool(for: Key.showTitleOnMainWindow)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user