Commit 36eff4ab authored by Guillaume Seguin's avatar Guillaume Seguin

Move back code which was incorrectly moved to pronsole

parent fdd8e152
...@@ -1154,8 +1154,6 @@ class pronsole(cmd.Cmd): ...@@ -1154,8 +1154,6 @@ class pronsole(cmd.Cmd):
print _("Print ended at: %(end_time)s and took %(duration)s") % {"end_time": format_time(time.time()), print _("Print ended at: %(end_time)s and took %(duration)s") % {"end_time": format_time(time.time()),
"duration": format_duration(print_duration)} "duration": format_duration(print_duration)}
self.p.runSmallScript(self.endScript)
if not self.settings.final_command: if not self.settings.final_command:
return return
run_command(self.settings.final_command, run_command(self.settings.final_command,
......
...@@ -304,6 +304,7 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -304,6 +304,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
def endcb(self): def endcb(self):
pronsole.pronsole.endcb(self) pronsole.pronsole.endcb(self)
if self.p.queueindex == 0: if self.p.queueindex == 0:
self.p.runSmallScript(self.endScript)
wx.CallAfter(self.pausebtn.Disable) wx.CallAfter(self.pausebtn.Disable)
wx.CallAfter(self.printbtn.SetLabel, _("Print")) wx.CallAfter(self.printbtn.SetLabel, _("Print"))
......
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