feat(firmware): add confirmation popup when deleting input or mix lines (#7111)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user