diff --git a/tailor_gui/src/components/factories/profile.rs b/tailor_gui/src/components/factories/profile.rs index fb7cc92..0fea271 100644 --- a/tailor_gui/src/components/factories/profile.rs +++ b/tailor_gui/src/components/factories/profile.rs @@ -96,6 +96,8 @@ impl FactoryComponent for Profile { #[template] add_row = &templates::ProfileListItem { + set_visible: !self.performance.model().variants.is_empty(), + #[template_child] image -> gtk::Image { set_icon_name: Some(icon_name::SPEEDOMETER), diff --git a/tuxedo_ioctl/src/hal/uniwill.rs b/tuxedo_ioctl/src/hal/uniwill.rs index d91768a..ba5521d 100644 --- a/tuxedo_ioctl/src/hal/uniwill.rs +++ b/tuxedo_ioctl/src/hal/uniwill.rs @@ -140,6 +140,9 @@ impl HardwareDevice for UniwillHardware { fn get_available_odm_performance_profiles(&self) -> IoctlResult> { let available_profs = read::uw::profs_available(&self.file)?; let profiles = match available_profs { + 0 => { + Vec::new() + } 2 => { vec![PERF_PROF_BALANCED.into(), PERF_PROF_ENTHUSIAST.into()] }