From 61c76a9d060827402eeb9fe92cae73ce159d66e5 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Mon, 23 Dec 2024 23:52:21 -0500 Subject: [PATCH] fix: only take oneshot for theme watcher if ID matches --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index bfc7e50..6965909 100644 --- a/src/main.rs +++ b/src/main.rs @@ -706,8 +706,8 @@ async fn watch_config_message_stream( let Ok((id, version)) = msg.body().deserialize::<(String, u64)>() else { continue; }; - if let Some(theme_oneshot_tx) = theme_oneshot_tx.take() { - if id == cosmic_theme::THEME_MODE_ID { + if id == cosmic_theme::THEME_MODE_ID { + if let Some(theme_oneshot_tx) = theme_oneshot_tx.take() { _ = theme_oneshot_tx.send(()); } }