From 40a1918372d6566a70fb4dbf827038230dc820f2 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Thu, 25 Dec 2025 11:27:01 +0100 Subject: [PATCH] fix: amd gpu power profile detection not being run --- src/ui/main_view.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/main_view.rs b/src/ui/main_view.rs index 9b4e37d..7cd0614 100644 --- a/src/ui/main_view.rs +++ b/src/ui/main_view.rs @@ -572,11 +572,10 @@ impl AsyncComponent for MainView { self.set_xrservice_ready(ready); } Self::Input::CheckAmdGpuPowerProfile => { - self.show_amd_gpu_power_profile_warn = match get_amd_gpu_power_profile() { - None => false, - Some(GpuPowerProfile::VR) => false, + self.set_show_amd_gpu_power_profile_warn(match get_amd_gpu_power_profile() { + None | Some(GpuPowerProfile::VR) => false, Some(_) => true, - } + }) } Self::Input::CheckSetcap => { let config = Config::get_config(); @@ -667,6 +666,7 @@ impl AsyncComponent for MainView { let widgets = view_output!(); sender.input(Self::Input::CheckSetcap); + sender.input(Self::Input::CheckAmdGpuPowerProfile); AsyncComponentParts { model, widgets } } -- 2.51.2