[color] reset clipboard on page tab switch

Resolves #301
This commit is contained in:
Raphael Coeffic
2021-06-22 21:40:47 +02:00
parent c2908e67d2
commit b1768afc36
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -403,6 +403,10 @@ class InputLineButton : public CommonInputOrMixButton
ModelInputsPage::ModelInputsPage():
PageTab(STR_MENUINPUTS, ICON_MODEL_INPUTS)
{
setOnSetVisibleHandler([]() {
// reset clipboard
s_copyMode = 0;
});
}
void ModelInputsPage::rebuild(FormWindow * window, int8_t focusIndex)
+4
View File
@@ -312,6 +312,10 @@ void insertMix(uint8_t idx, uint8_t channel)
ModelMixesPage::ModelMixesPage() :
PageTab(STR_MIXES, ICON_MODEL_MIXER)
{
setOnSetVisibleHandler([]() {
// reset clipboard
s_copyMode = 0;
});
}
void ModelMixesPage::rebuild(FormWindow * window, int8_t focusMixIndex)