mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-01 18:10:16 +00:00
Use standard UserDefaults for timelineWidth (which was incorrect previously so it’s good to lose one time).
This commit is contained in:
1 parent
834decfad3
commit
e99ebc8fc8
1 file changed
+4
-4
@@ -231,16 +231,16 @@ final class AppDefaults: Sendable {
|
||||
}
|
||||
}
|
||||
|
||||
// The iPad timeline (supplementary) column width. nil until the user has resized it.
|
||||
// The iPad timeline column width. nil until the user has resized it.
|
||||
var timelineWidth: Int? {
|
||||
get {
|
||||
return AppDefaults.store.object(forKey: Key.timelineWidth) as? Int
|
||||
UserDefaults.standard.object(forKey: Key.timelineWidth) as? Int
|
||||
}
|
||||
set {
|
||||
if let newValue {
|
||||
AppDefaults.store.set(newValue, forKey: Key.timelineWidth)
|
||||
UserDefaults.standard.set(newValue, forKey: Key.timelineWidth)
|
||||
} else {
|
||||
AppDefaults.store.removeObject(forKey: Key.timelineWidth)
|
||||
UserDefaults.standard.removeObject(forKey: Key.timelineWidth)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user