Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cura/UI
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2021-09-10 17:47:20 +0300
committerGhostkeeper <rubend@tutanota.com>2021-09-10 17:47:20 +0300
commita6a69c249cfc96e19ace64ec01aa7e4fc07a76d1 (patch)
treeb6f87d09b782c92c2396aaac230aa4e3cc909f96 /cura/UI
parent24ff3692bd5b73828a1c5a58cdd55400cdddad9c (diff)
Revert "Set the job name whenever the workspaceLoaded is called"
This reverts commit 6ad358a55db7dfc4825233a7e453bab31931fba0.
Diffstat (limited to 'cura/UI')
-rw-r--r--cura/UI/PrintInformation.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/cura/UI/PrintInformation.py b/cura/UI/PrintInformation.py
index 852763cbfd..d6bd336558 100644
--- a/cura/UI/PrintInformation.py
+++ b/cura/UI/PrintInformation.py
@@ -67,7 +67,7 @@ class PrintInformation(QObject):
self._application.globalContainerStackChanged.connect(self._updateJobName)
self._application.globalContainerStackChanged.connect(self.setToZeroPrintInformation)
self._application.fileLoaded.connect(self.setBaseName)
- self._application.workspaceLoaded.connect(self._onWorkspaceLoaded)
+ self._application.workspaceLoaded.connect(self.setProjectName)
self._application.getMachineManager().rootMaterialChanged.connect(self._onActiveMaterialsChanged)
self._application.getInstance().getPreferences().preferenceChanged.connect(self._onPreferencesChanged)
@@ -439,7 +439,3 @@ class PrintInformation(QObject):
"""Listen to scene changes to check if we need to reset the print information"""
self.setToZeroPrintInformation(self._active_build_plate)
-
- def _onWorkspaceLoaded(self, new_name: str) -> None:
- """Update the job name whenever a new workspace is loaded."""
- self.setJobName(os.path.splitext(os.path.basename(new_name))[0])