Do command fit toggle. Still need to settle on the logic for how to handle deleted fits - seems there's an issue with the queue.

This commit is contained in:
blitzmann
2018-08-03 22:30:09 -04:00
parent 3c7f0258df
commit 425c7f657c
5 changed files with 76 additions and 3 deletions

View File

@@ -186,9 +186,7 @@ class CommandView(d.Display):
col = self.getColumn(event.Position)
if col == self.getColIndex(State):
fitID = self.mainFrame.getActiveFit()
sFit = Fit.getInstance()
sFit.toggleCommandFit(fitID, item)
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))
self.mainFrame.command.Submit(cmd.GuiToggleCommandCommand(fitID, item.ID))
def scheduleMenu(self, event):
event.Skip()