mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
rog-gui: don't reset selection when enable fan-curve
This commit is contained in:
@@ -73,11 +73,17 @@ impl<'a> RogApp<'a> {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if changed {
|
if changed {
|
||||||
|
let selected_profile = curves.show_curve;
|
||||||
|
let selected_PU = curves.show_graph;
|
||||||
|
|
||||||
let notif = curves.was_notified.clone();
|
let notif = curves.was_notified.clone();
|
||||||
match FanCurvesState::new(notif, supported, dbus) {
|
match FanCurvesState::new(notif, supported, dbus) {
|
||||||
Ok(f) => *curves = f,
|
Ok(f) => *curves = f,
|
||||||
Err(e) => *do_error = Some(e.to_string()),
|
Err(e) => *do_error = Some(e.to_string()),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
curves.show_curve = selected_profile;
|
||||||
|
curves.show_graph = selected_PU;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user