Commit 329edba0 authored by Guillaume Seguin's avatar Guillaume Seguin

Add load callbacks for platers

parent 29d0a6c6
......@@ -67,6 +67,8 @@ class GcodeViewPanel(wxGLPanel):
for filename in self.parent.filenames:
self.parent.load_file(filename)
self.parent.autoplate()
if hasattr(self.parent, "loadcb"):
self.parent.loadcb()
self.parent.filenames = None
def create_objects(self):
......
......@@ -129,6 +129,8 @@ class StlViewPanel(wxGLPanel):
for filename in self.parent.filenames:
self.parent.load_file(filename)
self.parent.autoplate()
if hasattr(self.parent, "loadcb"):
self.parent.loadcb()
self.parent.filenames = None
def double(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