From fbcce0f58737816acceaf7504840b6e12ddc49df Mon Sep 17 00:00:00 2001 From: Hariharan Mudaliar Date: Sat, 15 Nov 2025 22:16:39 +0530 Subject: [PATCH] Working but stops after switching tabs --- DynamicIsland/components/Timer/TimerLiveActivity.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/DynamicIsland/components/Timer/TimerLiveActivity.swift b/DynamicIsland/components/Timer/TimerLiveActivity.swift index e9bd040..e14508d 100644 --- a/DynamicIsland/components/Timer/TimerLiveActivity.swift +++ b/DynamicIsland/components/Timer/TimerLiveActivity.swift @@ -141,7 +141,7 @@ struct TimerLiveActivity: View { } private var shouldShowControlWindow: Bool { - controlWindowEnabled && !shouldDisplayLabel && timerManager.isTimerActive + controlWindowEnabled && !shouldDisplayLabel && timerManager.isTimerActive && !timerManager.isExternalTimerActive } private func measureTextWidth(_ text: String, font: PlatformFont) -> CGFloat { @@ -286,6 +286,9 @@ struct TimerLiveActivity: View { .onChange(of: progressStyle) { _, _ in syncControlWindow(forceRefresh: true) } + .onChange(of: timerManager.activeSource) { _, _ in + syncControlWindow(forceRefresh: true) + } } private var iconSection: some View {