- start_wizard: use a global enum; switch detection from bool to int

This commit is contained in:
svenhoefer
2015-05-15 03:39:24 +02:00
parent d9b3e9420a
commit af90286a30
18 changed files with 48 additions and 122 deletions

View File

@@ -314,7 +314,7 @@ const CMenuOptionChooser::keyval SATSETUP_FRONTEND_MODE[SATSETUP_FRONTEND_MODE_C
{ CFrontend::FE_MODE_LINK_TWIN, LOCALE_SATSETUP_FE_MODE_LINK_TWIN },
};
CScanSetup::CScanSetup(bool wizard_mode)
CScanSetup::CScanSetup(int wizard_mode)
{
width = 40;
is_wizard = wizard_mode;
@@ -1762,13 +1762,6 @@ int CScanSetup::addListFlagsItems(CMenuWidget *listflags_menu, const int &shortc
return shortCut;
}
//sets menu mode to "wizard" or "default"
void CScanSetup::setWizardMode(bool mode)
{
printf("[neutrino] CScanSetup %s set scan-setup to mode %d...\n", __FUNCTION__, mode);
is_wizard = mode;
}
//save current settings
void CScanSetup::saveScanSetup()
{