1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 14:51:04 +02:00

fix(tray): update system-tray dep to bring in a whole load of fixes

This commit is contained in:
Jake Stanger 2024-11-08 01:35:04 +00:00
parent e53a9067b0
commit 55c0940e1d
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
3 changed files with 128 additions and 45 deletions

View file

@ -1,4 +1,4 @@
use crate::{await_sync, Ironbar};
use crate::await_sync;
use color_eyre::Result;
use std::path::Path;
use std::rc::Rc;
@ -151,9 +151,7 @@ impl Clients {
let client = match &self.tray {
Some(client) => client.clone(),
None => {
let service_name = format!("{}-{}", env!("CARGO_CRATE_NAME"), Ironbar::unique_id());
let client = await_sync(async { tray::Client::new(&service_name).await })?;
let client = await_sync(async { tray::Client::new().await })?;
let client = Arc::new(client);
self.tray.replace(client.clone());
client