fix(color): model may not be saved when curve 'smooth' property changed (#7225)

This commit is contained in:
philmoz
2026-04-16 10:00:08 +10:00
committed by GitHub
parent bf6708d84a
commit 60a42b5de7
@@ -328,6 +328,7 @@ void CurveEditWindow::buildBody(Window* window)
new TextButton(iLine, rect_t{0, 0, EdgeTxStyles::EDIT_FLD_WIDTH_NARROW, 0}, STR_SMOOTH, [=]() {
g_model.curves[index].smooth = !g_model.curves[index].smooth;
Messaging::send(Messaging::CURVE_EDIT);
SET_DIRTY();
return g_model.curves[index].smooth;
});
smooth->check(g_model.curves[index].smooth);