mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 12:09:41 +02: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:
parent
ba09d2599d
commit
bb30dedd09
@ -191,16 +191,10 @@ int Selector::exec(int startSelection) {
|
|||||||
// ...fall through...
|
// ...fall through...
|
||||||
case InputManager::LEFT:
|
case InputManager::LEFT:
|
||||||
if (showDirectories) {
|
if (showDirectories) {
|
||||||
string oldDir = dir;
|
|
||||||
dir = parentDir(dir);
|
dir = parentDir(dir);
|
||||||
if (dir == "/" && oldDir == "/") {
|
selected = 0;
|
||||||
close = true;
|
firstElement = 0;
|
||||||
result = false;
|
prepare(fl);
|
||||||
} else {
|
|
||||||
selected = 0;
|
|
||||||
firstElement = 0;
|
|
||||||
prepare(fl);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user