Bind beacon server only once

This commit is contained in:
Héctor Ramón Jiménez 2024-05-12 13:43:39 +02:00
parent b7c65c877d
commit e770804435
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 22 additions and 21 deletions

View file

@ -84,6 +84,12 @@ mod internal {
.stdout(process::Stdio::null())
.stderr(process::Stdio::null())
.spawn();
if let Some(palette) =
LAST_PALETTE.read().expect("Read last palette").as_ref()
{
BEACON.log(client::Event::ThemeChanged(*palette));
}
}
}