update: better solution to disable active partition for vuplus models

Origin commit data
------------------
Commit: a0a4659b6b
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-12-20 (Fri, 20 Dec 2019)

Origin message was:
------------------
- update: better solution to disable active partition for vuplus models
This commit is contained in:
vanhofen
2019-12-20 00:10:03 +01:00
parent 263c1b079d
commit 6c7047ccec

View File

@@ -791,19 +791,16 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey)
for (int i = 1; i < 4+1; i++)
{
bool active = !strcmp(c, to_string(i).c_str());
bool enable = true;
std::string m_title = "Partition " + to_string(i);
#if BOXMODEL_VUPLUS4K
// own partition blocked, because fix needed for flashing own partition
if (!active) {
mf = new CMenuForwarder(m_title, true, NULL, selector, to_string(i).c_str(), CRCInput::convertDigitToKey(i));
mf->iconName_Info_right = active ? NEUTRINO_ICON_MARKER_DIALOG_OK : NULL;
m.addItem(mf, active);
}
#else
mf = new CMenuForwarder(m_title, true, NULL, selector, to_string(i).c_str(), CRCInput::convertDigitToKey(i));
mf->iconName_Info_right = active ? NEUTRINO_ICON_MARKER_DIALOG_OK : NULL;
m.addItem(mf, active);
if (active)
enable = false;
#endif
mf = new CMenuForwarder(m_title, enable, NULL, selector, to_string(i).c_str(), CRCInput::convertDigitToKey(i));
mf->iconName_Info_right = active ? NEUTRINO_ICON_MARKER_DIALOG_OK : NULL;
m.addItem(mf, active);
}
m.enableSaveScreen(true);