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:
parent
e53a9067b0
commit
55c0940e1d
3 changed files with 128 additions and 45 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue