Commit fd89ad28 authored by Guillaume Seguin's avatar Guillaume Seguin

Set showall directly in addfile method

parent 62e31e73
......@@ -290,7 +290,7 @@ class GcodeViewMainWrapper(object):
def setlayer(self, *a):
pass
def addfile(self, gcode = None):
def addfile(self, gcode = None, showall = False):
self.model = create_model(self.root.settings.light3d
if self.root else False)
if gcode:
......
......@@ -1721,9 +1721,8 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
print _("Estimated duration: %s") % gcode.estimate_duration()
self.gviz.clear()
self.gwindow.p.clear()
self.gviz.addfile(gcode)
self.gviz.addfile(gcode, True)
self.gwindow.p.addfile(gcode)
self.gviz.showall = 1
wx.CallAfter(self.gviz.Refresh)
def printfile(self, event):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment