mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 23:59:01 +08:00
Strip the old "curaproject" extension from project name
CURA-5896
This commit is contained in:
parent
90726ecbff
commit
93afaf64c6
@ -369,6 +369,11 @@ class PrintInformation(QObject):
|
|||||||
else:
|
else:
|
||||||
self._base_name = ""
|
self._base_name = ""
|
||||||
|
|
||||||
|
# Strip the old "curaproject" extension from the name
|
||||||
|
OLD_CURA_PROJECT_EXT = ".curaproject"
|
||||||
|
if self._base_name.endswith(OLD_CURA_PROJECT_EXT):
|
||||||
|
self._base_name = self._base_name[:len(self._base_name) - len(OLD_CURA_PROJECT_EXT)]
|
||||||
|
|
||||||
self._updateJobName()
|
self._updateJobName()
|
||||||
|
|
||||||
@pyqtProperty(str, fset = setBaseName, notify = baseNameChanged)
|
@pyqtProperty(str, fset = setBaseName, notify = baseNameChanged)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user