feat(firmware): add confirmation popup when deleting input or mix lines (#7111)

This commit is contained in:
philmoz
2026-02-20 13:48:26 +10:00
committed by GitHub
parent fe942df5f8
commit bcb154c0e2
27 changed files with 114 additions and 23 deletions
+7 -1
View File
@@ -141,6 +141,12 @@ void deleteExpo(uint8_t idx)
storageDirty(EE_MODEL);
}
void onDeleteExpoConfirm(const char * result)
{
if (result == STR_OK)
deleteExpo(s_currIdx);
}
void onExposMenu(const char * result)
{
uint8_t chn = expoAddress(s_currIdx)->chn + 1;
@@ -163,7 +169,7 @@ void onExposMenu(const char * result)
s_copySrcRow = menuVerticalPosition;
}
else if (result == STR_DELETE) {
deleteExpo(s_currIdx);
POPUP_CONFIRMATION(STR_DELETE_INPUT_LINE, onDeleteExpoConfirm);
}
}
+7 -1
View File
@@ -37,6 +37,12 @@ bool reachMixesLimit()
return false;
}
void onDeleteMixConfirm(const char * result)
{
if (result == STR_OK)
deleteMix(s_currIdx);
}
void onMixesMenu(const char * result)
{
uint8_t chn = mixAddress(s_currIdx)->destCh + 1;
@@ -59,7 +65,7 @@ void onMixesMenu(const char * result)
s_copySrcRow = menuVerticalPosition;
}
else if (result == STR_DELETE) {
deleteMix(s_currIdx);
POPUP_CONFIRMATION(STR_DELETE_MIX_LINE, onDeleteMixConfirm);
}
}