rog-gui: don't reset selection when enable fan-curve

This commit is contained in:
Luke D. Jones
2022-08-29 13:44:59 +12:00
parent 7d14e8d900
commit 79b108ceb7

View File

@@ -73,11 +73,17 @@ impl<'a> RogApp<'a> {
});
if changed {
let selected_profile = curves.show_curve;
let selected_PU = curves.show_graph;
let notif = curves.was_notified.clone();
match FanCurvesState::new(notif, supported, dbus) {
Ok(f) => *curves = f,
Err(e) => *do_error = Some(e.to_string()),
}
curves.show_curve = selected_profile;
curves.show_graph = selected_PU;
}
}
}