MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / PopMenuData

Method PopMenuData

Goldleaf/source/ui/ui_MainApplication.cpp:331–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329 }
330
331 void MainApplication::PopMenuData() {
332 if(!this->menu_data_stack.empty()) {
333 this->menu_data_stack.pop();
334 }
335 if(!this->menu_data_stack.empty()) {
336 const auto &data = this->menu_data_stack.top();
337 this->DoLoadMenuData(data.name, data.img, data.head);
338 }
339 else {
340 this->UnloadMenuData();
341 }
342 }
343
344 void MainApplication::LoadMenuHead(const std::string &head) {
345 if(this->menu_head_text != nullptr) {

Callers 3

ReturnToParentLayoutMethod · 0.95
ReloadMethod · 0.80

Calls 2

DoLoadMenuDataMethod · 0.95
UnloadMenuDataMethod · 0.95

Tested by

no test coverage detected