fix(color): Wrong input could be used for updating curve preview (#4390)

This commit is contained in:
philmoz
2023-12-09 12:56:16 +10:00
committed by GitHub
parent ad16bf6cdd
commit b4f5ed5720
4 changed files with 20 additions and 0 deletions
+8
View File
@@ -159,3 +159,11 @@ void InputEditWindow::buildBody(FormWindow* form)
});
lv_obj_set_width(btn->getLvObj(), lv_pct(100));
}
void InputEditWindow::deleteLater(bool detach, bool trash)
{
if (!deleted()) {
CurveEdit::SetCurrentSource(0);
Page::deleteLater(detach, trash);
}
}
+2
View File
@@ -38,4 +38,6 @@ class InputEditWindow : public Page
Curve* preview;
void buildBody(FormWindow *window);
void deleteLater(bool detach = true, bool trash = true) override;
};
+8
View File
@@ -146,3 +146,11 @@ void MixEditWindow::buildBody(FormWindow* form)
});
lv_obj_set_width(btn->getLvObj(), lv_pct(100));
}
void MixEditWindow::deleteLater(bool detach, bool trash)
{
if (!deleted()) {
CurveEdit::SetCurrentSource(0);
Page::deleteLater(detach, trash);
}
}
+2
View File
@@ -38,4 +38,6 @@ class MixEditWindow : public Page
void buildHeader(Window *window);
void buildBody(FormWindow *window);
void deleteLater(bool detach = true, bool trash = true) override;
};