From a4a747bc770f59d5b7f844e11621561c302740c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E7=BF=94=E5=AE=87?= Date: Tue, 19 May 2026 17:49:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(toast):=20correct=20sleep=20duration=20?= =?UTF-8?q?=E2=80=94=202.0s=20=E2=86=92=202.6s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit UInt64(durationSeconds) truncated the Double 2.6 to 2 before multiplying by 1e9 ns, so toasts vanished 0.6s early. Move the multiplication inside the cast. Caught in 2026-05-19 code review, swift-verified. Bump CFBundleVersion 3 → 4. Co-Authored-By: Claude Opus 4.7 (1M context) --- Info.plist | 2 +- Sources/ui/Toast.swift | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Info.plist b/Info.plist index 38df799..a51bc3d 100644 --- a/Info.plist +++ b/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString 0.3.0 CFBundleVersion - 3 + 4 NSPrincipalClass FundPlugin.FundPlugin