Force use and update the job name with the loaded project file

CURA-4348

- If no project is loaded beforehand and then a model file is loaded,
  the job name should be determined with the current machine name and
  the first loaded model name.
- If a project is loaded, the job name should be the same as the project
  name, and it should not change until another project is loaded.
This commit is contained in:
Lipu Fei 2017-10-12 07:57:20 +02:00
parent eaa7b75f0e
commit 052ea7d90a
4 changed files with 20 additions and 4 deletions

View file

@ -36,8 +36,6 @@ UM.Dialog
var meshName = backgroundItem.getMeshName(projectFile.toString());
backgroundItem.hasMesh(decodeURIComponent(meshName));
// always update the job name with the loaded project
PrintInformation.setBaseName(meshName);
}
function loadModelFiles(fileUrls)