chiark / gitweb /
Change how the engine is interfaced from the python code. Put the GCode viewer in...
[cura.git] / Cura / gui / mainWindow.py
index 6f95f0da6e71e841d318cba27f9c3233b8373bd7..590252a53d3bc4adfbe1d1751e5894bcd36ce187 100644 (file)
@@ -327,6 +327,7 @@ class mainWindow(wx.Frame):
                if self.oneAtATime.IsChecked() and profile.getMachineSettingFloat('extruder_head_size_height') < 1:
                        wx.MessageBox(_('For "One at a time" printing, you need to have entered the correct head size and gantry height in the machine settings'), _('One at a time warning'), wx.OK | wx.ICON_WARNING)
                self.scene.updateProfileToControls()
+               self.scene.sceneUpdated()
 
        def OnPreferences(self, e):
                prefDialog = preferencesDialog.preferencesDialog(self)
@@ -574,7 +575,7 @@ class mainWindow(wx.Frame):
                #HACK: Set the paint function of the glCanvas to nothing so it won't keep refreshing. Which can keep wxWidgets from quiting.
                print "Closing down"
                self.scene.OnPaint = lambda e : e
-               self.scene._slicer.cleanup()
+               self.scene._engine.cleanup()
                self.Destroy()
 
        def OnQuit(self, e):