- update: better solution to disable active partition for vuplus models

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2019-12-20 00:10:03 +01:00
committed by Thilo Graf
parent d5fbe95d07
commit 630a6f605a

View File

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