GUI: Fix file select indexing
Jeffrey Pfau jeffrey@endrift.com
Mon, 31 Aug 2015 20:43:31 -0700
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/util/gui/file-select.c
→
src/util/gui/file-select.c
@@ -143,6 +143,7 @@ strncpy(params->currentPath, outPath, PATH_MAX);
} } params->fileIndex = 0; + menu.index = 0; } if (reason == GUI_MENU_EXIT_BACK) { if (strncmp(params->currentPath, params->basePath, PATH_MAX) == 0) {@@ -153,6 +154,7 @@ if (!_refreshDirectory(params, params->currentPath, &menu.items, filter)) {
break; } params->fileIndex = 0; + menu.index = 0; } }