Restore state of command fits on undo

This commit is contained in:
DarkPhoenix
2019-04-11 00:54:42 +03:00
parent 4cbeb34a3e
commit a08aa77afc
3 changed files with 45 additions and 20 deletions

View File

@@ -16,7 +16,7 @@ class GuiAddCommandCommand(wx.Command):
self.commandFitID = commandFitID
def Do(self):
if self.internal_history.Submit(FitAddCommandCommand(self.fitID, self.commandFitID)):
if self.internal_history.Submit(FitAddCommandCommand(self.fitID, self.commandFitID, None)):
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=self.fitID))
self.sFit.recalc(self.fitID)
return True