static Menu* previous;
static Menu* current_;
- static void pop_current();
-
public:
/** Set the current menu, if pmenu is NULL, hide the current menu */
static void set_current(Menu* pmenu);
static void push_current(Menu* pmenu);
+ static void pop_current();
+
static void recalc_pos();
config->locale = "";
dictionary_manager.set_language(config->locale);
config->save();
- Menu::set_current(0);
+ Menu::pop_current();
}
else if (item->id == 1) {
config->locale = "en";
dictionary_manager.set_language(config->locale);
config->save();
- Menu::set_current(0);
+ Menu::pop_current();
}
int mnid = 10;
std::set<std::string> languages = dictionary_manager.get_languages();
config->locale = locale_name;
dictionary_manager.set_language(config->locale);
config->save();
- Menu::set_current(0);
+ Menu::pop_current();
}
}
}