Use standard UserDefaults for timelineWidth (which was incorrect previously so it’s good to lose one time).

This commit is contained in:
Brent Simmons committed 2026-08-25 11:22:35 -07:00
1 parent 834decfad3
commit e99ebc8fc8
1 file changed
+4 -4
+4 -4
View File
@@ -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)
}
}
}