Commit d3204ea3 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix #572 - show loaded file name in window title

parent bbc598af
...@@ -1380,6 +1380,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>.""" ...@@ -1380,6 +1380,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
def post_gcode_load(self, print_stats = True): def post_gcode_load(self, print_stats = True):
# Must be called in wx.CallAfter for safety # Must be called in wx.CallAfter for safety
self.loading_gcode = False self.loading_gcode = False
self.SetTitle(_(u"Pronterface - %s") % self.filename)
message = _("Loaded %s, %d lines") % (self.filename, len(self.fgcode),) message = _("Loaded %s, %d lines") % (self.filename, len(self.fgcode),)
self.log(message) self.log(message)
self.statusbar.SetStatusText(message) self.statusbar.SetStatusText(message)
......
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