mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 18:45:55 +08:00
Remove suffix .curaproject for case "import models"
This commit is contained in:
parent
f48539cc93
commit
93de006271
@ -305,6 +305,9 @@ class PrintInformation(QObject):
|
|||||||
|
|
||||||
# name is "" when I first had some meshes and afterwards I deleted them so the naming should start again
|
# name is "" when I first had some meshes and afterwards I deleted them so the naming should start again
|
||||||
if name == "" or (self._base_name == "" and self._base_name != name):
|
if name == "" or (self._base_name == "" and self._base_name != name):
|
||||||
|
# remove ".curaproject" suffix from (imported) the file name
|
||||||
|
if name.endswith(".curaproject"):
|
||||||
|
name = name[:name.rfind(".curaproject")]
|
||||||
self._base_name = name
|
self._base_name = name
|
||||||
self._updateJobName()
|
self._updateJobName()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user