mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
When selector goes up from the root directory, stay in the root
Previously the selector would exit, but I don't see the logic in that.
This commit is contained in:
@@ -191,17 +191,11 @@ int Selector::exec(int startSelection) {
|
||||
// ...fall through...
|
||||
case InputManager::LEFT:
|
||||
if (showDirectories) {
|
||||
string oldDir = dir;
|
||||
dir = parentDir(dir);
|
||||
if (dir == "/" && oldDir == "/") {
|
||||
close = true;
|
||||
result = false;
|
||||
} else {
|
||||
selected = 0;
|
||||
firstElement = 0;
|
||||
prepare(fl);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case InputManager::ACCEPT:
|
||||
|
||||
Reference in New Issue
Block a user