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