mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
- start_wizard: use a global enum; switch detection from bool to int
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
|
||||
extern int pinghost (const std::string &hostname, std::string *ip = NULL);
|
||||
|
||||
CNetworkSetup::CNetworkSetup(bool wizard_mode)
|
||||
CNetworkSetup::CNetworkSetup(int wizard_mode)
|
||||
{
|
||||
networkConfig = CNetworkConfig::getInstance();
|
||||
|
||||
@@ -671,13 +671,6 @@ bool CNetworkSetup::changeNotify(const neutrino_locale_t locale, void * /*Data*/
|
||||
return false;
|
||||
}
|
||||
|
||||
//sets menu mode to "wizard" or "default"
|
||||
void CNetworkSetup::setWizardMode(bool mode)
|
||||
{
|
||||
printf("[neutrino network setup] %s set network settings menu to mode %d...\n", __FUNCTION__, mode);
|
||||
is_wizard = mode;
|
||||
}
|
||||
|
||||
void CNetworkSetup::showCurrentNetworkSettings()
|
||||
{
|
||||
std::string ip, mask, broadcast, router, nameserver, text;
|
||||
|
Reference in New Issue
Block a user