Fix initial drive change and go-up not working properly on first screen

This commit is contained in:
David Rowe 2016-05-17 10:51:42 +12:00
parent 14c733cd6e
commit 1fc3d9229c

View file

@ -72,6 +72,12 @@ ModalWindow {
root.dir = helper.pathToUrl(drivesSelector.currentText);
})
// HACK: The following two lines force the model to initialize properly such that:
// - Selecting a different drive at the initial screen updates the path displayed.
// - The go-up button works properly from the initial screen.
root.dir = helper.pathToUrl(drivesSelector.currentText);
root.dir = helper.pathToUrl(currentDirectory.lastValidFolder);
iconText = root.title !== "" ? hifi.glyphs.scriptUpload : "";
}