Merge pull request #463 from EdgeTX/mixOutputSaveName

TextEdit should trigger Model save, not Radio save
This commit is contained in:
Peter Feerick
2021-07-17 11:42:17 +10:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ class MixEditWindow : public Page
// Mix name
new StaticText(window, grid.getLabelSlot(), STR_MIXNAME);
new RadioTextEdit(window, grid.getFieldSlot(), mix->name,
new ModelTextEdit(window, grid.getFieldSlot(), mix->name,
sizeof(mix->name));
grid.nextLine();
+2 -2
View File
@@ -60,7 +60,7 @@ class OutputEditWindow : public Page {
// Name
new StaticText(window, grid.getLabelSlot(), STR_NAME);
new RadioTextEdit(window, grid.getFieldSlot(), output->name, sizeof(output->name));
new ModelTextEdit(window, grid.getFieldSlot(), output->name, sizeof(output->name));
grid.nextLine();
// Offset
@@ -130,7 +130,7 @@ class OutputLineButton : public Button {
LcdFlags bgColor = FIELD_BGCOLOR;
dc->drawSolidFilledRect(0, 0, width(), height(), bgColor);
// first line
dc->drawNumber(FIELD_PADDING_LEFT, FIELD_PADDING_TOP, output->min - 1000,
PREC1 | textColor);