opkg_manager: move visual update check into own methode

Origin commit data
------------------
Branch: ni/coolstream
Commit: 30b58c4792
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-04-10 (Sat, 10 Apr 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2021-04-10 22:19:43 +02:00
committed by vanhofen
parent 101d3a0387
commit 964918d90e
2 changed files with 12 additions and 3 deletions

View File

@@ -553,15 +553,23 @@ void COPKGManager::refreshMenu() {
updateMenu();
}
int COPKGManager::showMenu()
void COPKGManager::showUpdateCheckResult()
{
installed = false;
if (checkUpdates()){
checkUpdates();
if (num_updates)
{
std::string update_msg = to_string(num_updates) + " ";
update_msg += g_Locale->getText(LOCALE_OPKG_MESSAGEBOX_UPDATES_AVAILABLE);
DisplayInfoMessage(update_msg.c_str());
}
}
int COPKGManager::showMenu()
{
installed = false;
showUpdateCheckResult();
#if 0
getPkgData(OM_LIST);
getPkgData(OM_LIST_UPGRADEABLE);