mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
POPUP title
This commit is contained in:
parent
c7258fd4f8
commit
111b209a75
4 changed files with 25 additions and 7 deletions
|
@ -1326,12 +1326,10 @@ void menuModelSetup(event_t event)
|
|||
uint8_t receiverIdx = CURRENT_RECEIVER_EDITED(k);
|
||||
uint8_t receiverSlot = g_model.moduleData[moduleIdx].pxx2.getReceiverSlot(receiverIdx) - 1;
|
||||
|
||||
if (zexist(g_model.receiverData[receiverSlot].name, PXX2_LEN_RX_NAME)) {
|
||||
if (g_model.receiverData[receiverSlot].name[0] != '\0')
|
||||
lcdDrawSizedText(INDENT_WIDTH * 2, y, g_model.receiverData[receiverSlot].name, PXX2_LEN_RX_NAME);
|
||||
}
|
||||
else {
|
||||
else
|
||||
lcdDrawTextAlignedLeft(y, INDENT INDENT "---");
|
||||
}
|
||||
|
||||
lcdDrawText(MODEL_SETUP_2ND_COLUMN, y, STR_MODULE_BIND, menuHorizontalPosition==0 ? attr : 0);
|
||||
lcdDrawText(lcdLastRightPos + FW/2, y, BUTTON("Share"), menuHorizontalPosition==1 ? attr : 0);
|
||||
|
@ -1351,6 +1349,7 @@ void menuModelSetup(event_t event)
|
|||
for (uint8_t i=0; i<popupMenuItemsCount; i++) {
|
||||
popupMenuItems[i] = reusableBuffer.moduleSetup.pxx2.bindCandidateReceiversNames[i];
|
||||
}
|
||||
popupMenuTitle = "Select RX...";
|
||||
POPUP_MENU_START(onPXX2BindMenu);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue