mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 13:34:01 -06:00
Strip the old "curaproject" extension from project name
CURA-5896
This commit is contained in:
parent
90726ecbff
commit
93afaf64c6
1 changed files with 5 additions and 0 deletions
|
@ -369,6 +369,11 @@ class PrintInformation(QObject):
|
|||
else:
|
||||
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()
|
||||
|
||||
@pyqtProperty(str, fset = setBaseName, notify = baseNameChanged)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue