opkg_manager: remove unused member menu_offset

Origin commit data
------------------
Commit: 2881c9781e
Author: Thilo Graf <dbt@novatux.de>
Date: 2023-03-07 (Tue, 07 Mar 2023)
This commit is contained in:
2023-03-07 23:20:44 +01:00
committed by vanhofen
parent 3014fb5fce
commit 72605499aa
2 changed files with 1 additions and 4 deletions

View File

@@ -161,7 +161,7 @@ int COPKGManager::exec(CMenuTarget* parent, const string &actionKey)
return ret;
}
int selected = menu->getSelected()/* - menu_offset*/;
int selected = menu->getSelected();
string pkg_name = menu->getItem(selected)->getName();
if (expert_mode && actionKey == "rc_blue") {
@@ -769,8 +769,6 @@ int COPKGManager::showMenu()
menu->addItem(GenericMenuSeparatorLine);
menu_offset = menu->getItemsCount();
menu->addKey(CRCInput::RC_help, this, "rc_info");
menu->addKey(CRCInput::RC_info, this, "rc_info");
menu->addKey(CRCInput::RC_blue, this, "rc_blue");

View File

@@ -81,7 +81,6 @@ class COPKGManager : public CMenuTarget, public COPKGManagerExtra
bool list_upgradeable_done;
bool installed;
bool expert_mode;
int menu_offset;
std::string *local_dir;
bool has_err;