fix(color): Clear edit mode when page closes (#4152)
This commit is contained in:
+7
@@ -72,6 +72,13 @@ void FormField::onCancel()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FormField::deleteLater(bool detach, bool trash)
|
||||||
|
{
|
||||||
|
if (isEditMode())
|
||||||
|
setEditMode(false);
|
||||||
|
Window::deleteLater(detach, trash);
|
||||||
|
}
|
||||||
|
|
||||||
FormWindow::Line::Line(Window* parent, lv_obj_t* obj, FlexGridLayout* layout) :
|
FormWindow::Line::Line(Window* parent, lv_obj_t* obj, FlexGridLayout* layout) :
|
||||||
Window(parent, obj), layout(layout)
|
Window(parent, obj), layout(layout)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
@@ -45,6 +45,7 @@ class FormField : public Window
|
|||||||
|
|
||||||
void onClicked() override;
|
void onClicked() override;
|
||||||
void onCancel() override;
|
void onCancel() override;
|
||||||
|
void deleteLater(bool detach = true, bool trash = true) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool editMode = false;
|
bool editMode = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user