mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-04 03:08:43 +00:00
Remove obsolete refresh interval migration.
This commit is contained in:
1 parent
e2b901fc28
commit
daa6281b37
1 file changed
-9
@@ -250,9 +250,6 @@ extension AppDefaults {
|
||||
static var refreshInterval: RefreshInterval {
|
||||
get {
|
||||
let rawValue = UserDefaults.standard.integer(forKey: Key.refreshInterval)
|
||||
if rawValue == 2 { // Old every-10-minutes setting — now using 30 minutes as minimum.
|
||||
return .every30Minutes
|
||||
}
|
||||
return RefreshInterval(rawValue: rawValue) ?? .every2Hours
|
||||
}
|
||||
set {
|
||||
@@ -261,12 +258,6 @@ extension AppDefaults {
|
||||
}
|
||||
|
||||
@MainActor static func registerDefaults() {
|
||||
// Migrate every-10-minute refresh interval to 30 minutes.
|
||||
let rawValue = UserDefaults.standard.integer(forKey: Key.refreshInterval)
|
||||
if rawValue == 2 {
|
||||
UserDefaults.standard.set(RefreshInterval.every30Minutes.rawValue, forKey: Key.refreshInterval)
|
||||
}
|
||||
|
||||
migrateLegacyTimelineShowSeparators()
|
||||
|
||||
#if DEBUG
|
||||
|
||||
Reference in new issue
Block a user