dictionary_manager->set_language(language); // set currently detected language
g_config->locale = ""; // do auto detect every time on startup
g_config->save();
- MenuManager::instance().pop_menu();
+ MenuManager::instance().clear_menu_stack();
}
else if (item->id == MNID_LANGUAGE_ENGLISH) // english
{
g_config->locale = "en";
dictionary_manager->set_language(tinygettext::Language::from_name(g_config->locale));
g_config->save();
- MenuManager::instance().pop_menu();
+ MenuManager::instance().clear_menu_stack();
}
else
{
g_config->locale = i->str();
dictionary_manager->set_language(*i);
g_config->save();
- MenuManager::instance().pop_menu();
+ MenuManager::instance().clear_menu_stack();
break;
}
}