Commit dab09cb9 authored by Guillaume Seguin's avatar Guillaume Seguin

Reload viz after reloading UI

parent 8a196812
......@@ -312,6 +312,8 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self.logbox.SetValue(logcontent)
temppanel.Destroy()
self.panel.Layout()
if self.fgcode:
self.post_gcode_load(print_stats = False)
self.ui_ready = True
self.Thaw()
......@@ -1772,7 +1774,8 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
else:
dlg.Destroy()
def post_gcode_load(self):
def post_gcode_load(self, print_stats = True):
if print_stats:
self.output_gcode_stats()
threading.Thread(target = self.loadviz).start()
......
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