Commit 1e18c27b authored by Guillaume Seguin's avatar Guillaume Seguin

Fix #552 (most likely) by properly resetting self.sdprinting

parent 97e34f7a
...@@ -1024,6 +1024,7 @@ class pronsole(cmd.Cmd): ...@@ -1024,6 +1024,7 @@ class pronsole(cmd.Cmd):
return return
self.log(_("Printing %s") % self.filename) self.log(_("Printing %s") % self.filename)
self.log(_("You can monitor the print with the monitor command.")) self.log(_("You can monitor the print with the monitor command."))
self.sdprinting = False
self.p.startprint(self.fgcode) self.p.startprint(self.fgcode)
def do_pause(self, l): def do_pause(self, l):
......
...@@ -1135,6 +1135,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>.""" ...@@ -1135,6 +1135,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
if not self.p.online: if not self.p.online:
wx.CallAfter(self.statusbar.SetStatusText, _("Not connected to printer.")) wx.CallAfter(self.statusbar.SetStatusText, _("Not connected to printer."))
return return
self.sdprinting = False
self.on_startprint() self.on_startprint()
self.p.startprint(self.fgcode) self.p.startprint(self.fgcode)
......
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