diff --git a/lact-gui/src/app/pages/oc_page.rs b/lact-gui/src/app/pages/oc_page.rs index cb35d572..5cb2db94 100644 --- a/lact-gui/src/app/pages/oc_page.rs +++ b/lact-gui/src/app/pages/oc_page.rs @@ -265,7 +265,9 @@ impl OcPage { config.apply_clocks_command(&command); } - config.gpu_vf_curve = self.vf_curve_editor.model().get_configured_curve(); + if !self.vf_curve_editor.model().is_empty() { + config.gpu_vf_curve = self.vf_curve_editor.model().get_configured_curve(); + } } pub fn get_enabled_power_states(&self) -> IndexMap> { diff --git a/lact-gui/src/app/pages/oc_page/vf_curve.rs b/lact-gui/src/app/pages/oc_page/vf_curve.rs index 706aa696..08f2738d 100644 --- a/lact-gui/src/app/pages/oc_page/vf_curve.rs +++ b/lact-gui/src/app/pages/oc_page/vf_curve.rs @@ -642,6 +642,10 @@ impl VfCurveEditor { (cmp::min(start, end), cmp::max(end, start)) } + pub fn is_empty(&self) -> bool { + self.points.borrow().is_empty() + } + pub fn get_configured_curve(&self) -> IndexMap { if !self.allow_editing.value() { return IndexMap::new();