Fix an issue which caused pyfa to crash (turns out instantiating the commands in the init was not a good idea)
This commit is contained in:
@@ -67,5 +67,6 @@ class GuiModuleToCargoCommand(wx.Command):
|
||||
def Undo(self):
|
||||
for _ in self.internal_history.Commands:
|
||||
self.internal_history.Undo()
|
||||
self.sFit.recalc(self.fitID)
|
||||
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=self.fitID))
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user