int CScanSetup::exec(CMenuTarget* parent, const std::string &actionKey) { dprintf(DEBUG_DEBUG, "init scan service\n"); int res = menu_return::RETURN_REPAINT; if (parent) { parent->hide(); } if(actionKey == "save_action") { scanSettings.gotoXXLatitude = strtod(zapit_lat, NULL); scanSettings.gotoXXLongitude = strtod(zapit_long, NULL); CNeutrinoApp::getInstance()->exec(NULL, "savesettings"); g_Zapit->loadScanSetupSettings(); showScanService(); return menu_return::RETURN_EXIT; } else if (actionKey == "show_scanmodes") { showScanModeMenue(); showScanService(); return menu_return::RETURN_EXIT; } showScanService(); return res; }
int CScanSetup::exec(CMenuTarget* parent, const std::string &actionKey) { dprintf(DEBUG_DEBUG, "init scan service\n"); int res = menu_return::RETURN_REPAINT; if (parent) { parent->hide(); } if(actionKey == "save_action") { CNeutrinoApp::getInstance()->exec(NULL, "savesettings"); showScanService(); return menu_return::RETURN_EXIT; } showScanService(); return res; }