Merge pull request #2336 from lakkatv/material

(GLUI) Reset selection on tab switch
This commit is contained in:
Twinaphex 2015-11-03 11:08:52 +01:00
commit 85555944cb
1 changed files with 3 additions and 0 deletions

View File

@ -1193,6 +1193,9 @@ static void materialui_preswitch_tabs(unsigned action)
if (!materialui)
return;
size_t idx = 0;
menu_navigation_ctl(MENU_NAVIGATION_CTL_SET_SELECTION, &idx);
menu_stack = menu_entries_get_menu_stack_ptr(0);
stack_size = menu_stack->size;