From a795006633069d800f590b744130f61bf88ce51c Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Tue, 2 Sep 2025 08:50:21 -0400 Subject: [PATCH] fix(time): don't recreate timezone property stream --- cosmic-applet-time/src/window.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cosmic-applet-time/src/window.rs b/cosmic-applet-time/src/window.rs index e10a6d39..da1c1137 100644 --- a/cosmic-applet-time/src/window.rs +++ b/cosmic-applet-time/src/window.rs @@ -244,7 +244,8 @@ impl cosmic::Application for Window { // The stream always returns the current timezone as its first item even if it wasn't // updated. If the proxy is recreated in a loop somehow, the resulting stream will // always yield an update immediately which could lead to spammed false updates. - while let Some(property) = proxy.receive_timezone_changed().await.next().await { + let mut stream_tz = proxy.receive_timezone_changed().await; + while let Some(property) = stream_tz.next().await { let tz = property.get().await?; output .send(Message::TimezoneUpdate(tz))