chiark / gitweb /
Add save notification.
authordaid303 <daid303@gmail.com>
Tue, 16 Apr 2013 12:38:25 +0000 (14:38 +0200)
committerdaid303 <daid303@gmail.com>
Tue, 16 Apr 2013 12:38:25 +0000 (14:38 +0200)
Cura/gui/sceneView.py

index c9394c79b74d294205f216b28a4d0a3e02ec792f..055f598a5db9b098779d182b39f7962d21e521de 100644 (file)
@@ -130,6 +130,7 @@ class SceneView(openglGui.glGuiPanel):
                                filename = os.path.basename(profile.getPreference('lastFile'))
                                filename = filename[0:filename.rfind('.')] + '.gcode'
                                shutil.copy(self._slicer.getGCodeFilename(), drive[1] + filename)
+                               self.notification.message("Saved as %s" % (drive[1] + filename))
                        else:
                                defPath = profile.getPreference('lastFile')
                                defPath = defPath[0:defPath.rfind('.')] + '.gcode'
@@ -143,6 +144,7 @@ class SceneView(openglGui.glGuiPanel):
                                dlg.Destroy()
 
                                shutil.copy(self._slicer.getGCodeFilename(), filename)
+                               self.notification.message("Saved as %s" % (filename))
 
        def OnToolSelect(self, button):
                if self.rotateToolButton.getSelected():