mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
Properly set the current folder on file open
This makes sure the next time the file dialog is opened the last folder used is openend. CURA-246 #Start-Review
This commit is contained in:
parent
e42ffb23ca
commit
0b9047f6ca
1 changed files with 5 additions and 0 deletions
|
|
@ -636,6 +636,11 @@ UM.MainWindow
|
||||||
|
|
||||||
onAccepted:
|
onAccepted:
|
||||||
{
|
{
|
||||||
|
//Because several implementations of the file dialog only update the folder
|
||||||
|
//when it is explicitly set.
|
||||||
|
var f = folder;
|
||||||
|
folder = f;
|
||||||
|
|
||||||
UM.MeshFileHandler.readLocalFile(fileUrl)
|
UM.MeshFileHandler.readLocalFile(fileUrl)
|
||||||
openDialog.sendMeshName(fileUrl.toString())
|
openDialog.sendMeshName(fileUrl.toString())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue