Working but stops after switching tabs

This commit is contained in:
Hariharan Mudaliar 2025-11-15 22:16:39 +05:30
commit fbcce0f587

View file

@ -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 {