Skip to content

Commit

Permalink
fix: only take oneshot for theme watcher if ID matches
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Dec 24, 2024
1 parent 9d9ad8e commit 61c76a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(());
}
}
Expand Down

0 comments on commit 61c76a9

Please sign in to comment.