update: preselect first found update

Origin commit data
------------------
Commit: 358afec047
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-11-29 (Thu, 29 Nov 2018)

Origin message was:
------------------
- update: preselect first found update
This commit is contained in:
vanhofen
2018-11-29 22:47:42 +01:00
parent 2739933eca
commit d946dcd2cb

View File

@@ -324,7 +324,7 @@ bool CFlashUpdate::selectHttpImage(void)
CUpdateMenuTarget * up = new CUpdateMenuTarget(i, &selected); CUpdateMenuTarget * up = new CUpdateMenuTarget(i, &selected);
mf = new CMenuDForwarder(descriptions[i].c_str(), enabled, names[i].c_str(), up); mf = new CMenuDForwarder(descriptions[i].c_str(), enabled, names[i].c_str(), up);
//TODO mf->setHint(NEUTRINO_ICON_HINT_SW_UPDATE, ""); //TODO mf->setHint(NEUTRINO_ICON_HINT_SW_UPDATE, "");
SelectionWidget.addItem(mf); SelectionWidget.addItem(mf, i == 0); // first entry is preselected
i++; i++;
} }
} }