From eea8e58c44837f6f4e1884029f961606a0bfbec2 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 7 Jan 2022 09:27:55 +0100 Subject: [PATCH] update_menue: show update status of packages in update menue ... to visualize update status already in the preview. --- src/gui/update_menue.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/update_menue.cpp b/src/gui/update_menue.cpp index 92b55c1e4..81663ce4f 100644 --- a/src/gui/update_menue.cpp +++ b/src/gui/update_menue.cpp @@ -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);