mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Use correct defaults for GfxMode and GfxPower
This commit is contained in:
@@ -11,7 +11,6 @@ mocking = []
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
egui = { git = "https://github.com/flukejones/egui", branch = "wayland_dark_theme" }
|
egui = { git = "https://github.com/flukejones/egui", branch = "wayland_dark_theme" }
|
||||||
eframe= { git = "https://github.com/flukejones/egui", branch = "wayland_dark_theme" }
|
eframe= { git = "https://github.com/flukejones/egui", branch = "wayland_dark_theme" }
|
||||||
#eframe= { git = "https://github.com/emilk/egui", default-features = false, features = ["dark-light", "default_fonts", "wgpu"] }
|
|
||||||
|
|
||||||
libappindicator = "0.7" # Tray icon
|
libappindicator = "0.7" # Tray icon
|
||||||
gtk = "0.15.5"
|
gtk = "0.15.5"
|
||||||
|
|||||||
@@ -228,8 +228,8 @@ impl GfxState {
|
|||||||
pub fn new(_supported: &SupportedFunctions, dbus: &GfxProxyBlocking<'_>) -> Result<Self> {
|
pub fn new(_supported: &SupportedFunctions, dbus: &GfxProxyBlocking<'_>) -> Result<Self> {
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
has_supergfx: dbus.mode().is_ok(),
|
has_supergfx: dbus.mode().is_ok(),
|
||||||
mode: dbus.mode().unwrap_or_default(),
|
mode: dbus.mode().unwrap_or(GfxMode::None),
|
||||||
power_status: dbus.power().unwrap_or_default(),
|
power_status: dbus.power().unwrap_or(GfxPower::Unknown),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user