This commit is contained in:
Luke Jones
2025-02-16 09:38:33 +13:00
parent 5fb0e26331
commit 7f12f62ad5
4 changed files with 260 additions and 141 deletions

View File

@@ -49,11 +49,12 @@ versions.workspace = true
git = "https://github.com/slint-ui/slint.git"
default-features = false
features = [
"gettext",
"compat-1-2",
"gettext",
"accessibility",
"backend-winit-wayland",
"renderer-winit-femtovg",
# "renderer-skia-opengl",
# "renderer-femtovg",
"renderer-skia-opengl",
]
[build-dependencies.slint-build]

View File

@@ -111,21 +111,21 @@ pub fn setup_fan_curve_page(ui: &MainWindow, _config: Arc<Mutex<Config>>) {
let Ok(balanced) = fans
.fan_curve_data(PlatformProfile::Balanced)
.await
.map_err(|e| error!("{e:}"))
.map_err(|e| error!("Couldn't get balanced data: {e:}"))
else {
return;
};
let Ok(perf) = fans
.fan_curve_data(PlatformProfile::Performance)
.await
.map_err(|e| error!("{e:}"))
.map_err(|e| error!("Couldn't get performance data: {e:}"))
else {
return;
};
let Ok(quiet) = fans
.fan_curve_data(PlatformProfile::Quiet)
.await
.map_err(|e| error!("{e:}"))
.map_err(|e| error!("Couldn't get quiet data: {e:}"))
else {
return;
};