update_menue: show update status of packages in update menue

... to visualize update status already in the preview.
This commit is contained in:
2022-01-07 09:27:55 +01:00
parent e393c87324
commit eea8e58c44

View File

@@ -85,7 +85,9 @@ int CSoftwareUpdate::showSoftwareUpdate()
if (COPKGManager::hasOpkgSupport())
{
// firmware update via opkg
mf = new CMenuDForwarder(LOCALE_OPKG_TITLE, true, NULL, new COPKGManager(), NULL, CRCInput::RC_red);
COPKGManager *man = new COPKGManager();
mf = new CMenuDForwarder(LOCALE_OPKG_TITLE, true, NULL, man, NULL, CRCInput::RC_red);
mf->OnPaintItem.connect(sigc::bind(sigc::mem_fun(man, &COPKGManager::setUpdateStateIcon2Item), mf));
mf->setHint(NEUTRINO_ICON_HINT_SW_UPDATE, LOCALE_MENU_HINT_OPKG);
softUpdate.addItem(mf);
inetkey = CRCInput::convertDigitToKey(1);