Skip to content

Commit 80bbf81

Browse files
committed
file browser: reset to position 0 after opening folder
1 parent bb9789a commit 80bbf81

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

gui/FileBrowser.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,4 @@ class FileBrowser : public ListElement
2828
std::string* pwd = NULL;
2929
bool touchMode = true;
3030
int cardsPerRow = 5;
31-
32-
int selected = -1;
3331
};

gui/MainDisplay.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void MainDisplay::openFile(bool isFolder, std::string* path)
3333
{
3434
browser->update_path(path->c_str());
3535
browser->y = 0;
36-
browser->selected = 0;
36+
browser->highlighted = 0;
3737
browser->listfiles();
3838
}
3939
else

0 commit comments

Comments
 (0)