From e99ebc8fc8e975e342c75d9ed909165a43d46a15 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 25 Aug 2026 11:22:35 -0700 Subject: [PATCH] =?UTF-8?q?Use=20standard=20UserDefaults=20for=20timelineW?= =?UTF-8?q?idth=20(which=20was=20incorrect=20previously=20so=20it=E2=80=99?= =?UTF-8?q?s=20good=20to=20lose=20one=20time).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/AppDefaults.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iOS/AppDefaults.swift b/iOS/AppDefaults.swift index 6692ac539..8a3b4bc0d 100644 --- a/iOS/AppDefaults.swift +++ b/iOS/AppDefaults.swift @@ -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) } } }