Commit 0b885578 authored by Keegi's avatar Keegi

only save feedrates when changed

parent 8d92ac24
...@@ -395,6 +395,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -395,6 +395,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.gwindow.Show() self.gwindow.Show()
def setfeeds(self,e): def setfeeds(self,e):
self.feedrates_changed = True
try: try:
self.settings._set("e_feedrate",self.efeedc.GetValue()) self.settings._set("e_feedrate",self.efeedc.GetValue())
except: except:
...@@ -436,9 +437,10 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -436,9 +437,10 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.statuscheck=0 self.statuscheck=0
self.p.recvcb=None self.p.recvcb=None
self.p.disconnect() self.p.disconnect()
self.save_in_rc("set xy_feedrate","set xy_feedrate %d" % self.settings.xy_feedrate) if hasattr(self,"feedrates_changed"):
self.save_in_rc("set z_feedrate","set z_feedrate %d" % self.settings.z_feedrate) self.save_in_rc("set xy_feedrate","set xy_feedrate %d" % self.settings.xy_feedrate)
self.save_in_rc("set e_feedrate","set e_feedrate %d" % self.settings.e_feedrate) self.save_in_rc("set z_feedrate","set z_feedrate %d" % self.settings.z_feedrate)
self.save_in_rc("set e_feedrate","set e_feedrate %d" % self.settings.e_feedrate)
try: try:
self.gwindow.Destroy() self.gwindow.Destroy()
except: except:
......
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