Commit 97988f7e authored by Guillaume Seguin's avatar Guillaume Seguin

Add proper loading message to pronterface

parent ec19c127
...@@ -865,7 +865,7 @@ class pronsole(cmd.Cmd): ...@@ -865,7 +865,7 @@ class pronsole(cmd.Cmd):
if not filename: if not filename:
self.logError("No file name given.") self.logError("No file name given.")
return return
self.log("Loading file: " + filename) self.log(_("Loading file: %s") % filename)
if not os.path.exists(filename): if not os.path.exists(filename):
self.logError("File not found!") self.logError("File not found!")
return return
......
...@@ -1341,6 +1341,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>.""" ...@@ -1341,6 +1341,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
def load_gcode_async(self, filename): def load_gcode_async(self, filename):
self.filename = filename self.filename = filename
gcode = self.pre_gcode_load() gcode = self.pre_gcode_load()
self.log(_("Loading file: %s") % filename)
threading.Thread(target = self.load_gcode_async_thread, args = (gcode,)).start() threading.Thread(target = self.load_gcode_async_thread, args = (gcode,)).start()
def load_gcode_async_thread(self, gcode): def load_gcode_async_thread(self, gcode):
......
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