Don't select first item when browsing back using parent dir
The parent directory reference is the same for all directories, so we'll have to make sure to reset its FF_BSEL flag when opening another directory.
Этот коммит содержится в:
родитель
5db9c2aea1
Коммит
a35f998168
@ -193,6 +193,7 @@ void dirlist_open(struct dir *d) {
|
|||||||
head_real = head = dirlist_sort(head);
|
head_real = head = dirlist_sort(head);
|
||||||
|
|
||||||
/* set the reference to the parent dir */
|
/* set the reference to the parent dir */
|
||||||
|
dirlist_parent_alloc.flags &= ~FF_BSEL;
|
||||||
if(head->parent->parent) {
|
if(head->parent->parent) {
|
||||||
dirlist_parent = &dirlist_parent_alloc;
|
dirlist_parent = &dirlist_parent_alloc;
|
||||||
dirlist_parent->name = "..";
|
dirlist_parent->name = "..";
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user