mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-23 19:01:05 -07:00
Project name is now correctly set upon loading project
CURA-3387
This commit is contained in:
parent
9ceda261b7
commit
4f74edd421
1 changed files with 3 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ UM.MainWindow
|
||||||
function getMeshName(path){
|
function getMeshName(path){
|
||||||
//takes the path the complete path of the meshname and returns only the filebase
|
//takes the path the complete path of the meshname and returns only the filebase
|
||||||
var fileName = path.slice(path.lastIndexOf("/") + 1)
|
var fileName = path.slice(path.lastIndexOf("/") + 1)
|
||||||
var fileBase = fileName.slice(0, fileName.lastIndexOf("."))
|
var fileBase = fileName.slice(0, fileName.indexOf("."))
|
||||||
return fileBase
|
return fileBase
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -786,6 +786,8 @@ UM.MainWindow
|
||||||
{
|
{
|
||||||
UM.WorkspaceFileHandler.readLocalFile(fileUrls[i])
|
UM.WorkspaceFileHandler.readLocalFile(fileUrls[i])
|
||||||
}
|
}
|
||||||
|
var meshName = backgroundItem.getMeshName(fileUrls[0].toString())
|
||||||
|
backgroundItem.hasMesh(decodeURIComponent(meshName))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue