Revert back to zbus 4.1

This commit is contained in:
Luke D. Jones
2024-05-06 23:54:36 +12:00
parent 8dbdb68175
commit 94adf5d24d
4 changed files with 48 additions and 90 deletions

View File

@@ -15,7 +15,7 @@ edition.workspace = true
[dependencies]
nix = { version = "^0.28.0", features = ["fs"] }
tempfile = "3.3.0"
betrayer = { version = "0.2.0", features = ["winit"] }
betrayer = { version = "0.2.0" }
asusd = { path = "../asusd" }
config-traits = { path = "../config-traits" }
@@ -24,7 +24,7 @@ rog_dbus = { path = "../rog-dbus" }
rog_aura = { path = "../rog-aura" }
rog_profiles = { path = "../rog-profiles" }
rog_platform = { path = "../rog-platform" }
supergfxctl = { git = "https://gitlab.com/asus-linux/supergfxctl.git", default-features = false }
supergfxctl = { git = "https://gitlab.com/asus-linux/supergfxctl.git", rev = "4eb6e97c22b68ae8d1e80500709b0c0580776ad3", default-features = false }
dmi_id = { path = "../dmi-id" }
gumdrop.workspace = true

View File

@@ -172,6 +172,7 @@ pub fn init_tray(_supported_properties: Vec<Properties>, config: Arc<Mutex<Confi
info!("Started ROGTray");
let mut last_power = GfxPower::Unknown;
loop {
sleep(Duration::from_millis(1000));
if let Ok(lock) = config.try_lock() {
if !lock.enable_tray_icon {
return;
@@ -185,7 +186,6 @@ pub fn init_tray(_supported_properties: Vec<Properties>, config: Arc<Mutex<Confi
}
}
}
sleep(Duration::from_millis(1000));
}
}
});