Implement drone toggle command

This commit is contained in:
blitzmann
2018-08-18 01:09:37 -04:00
parent b17314f3c6
commit 7e94914f65
6 changed files with 159 additions and 90 deletions

View File

@@ -239,10 +239,8 @@ class DroneView(Display):
col = self.getColumn(event.Position)
if col == self.getColIndex(State):
fitID = self.mainFrame.getActiveFit()
sFit = Fit.getInstance()
drone = self.drones[row]
sFit.toggleDrone(fitID, self.original.index(drone))
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))
self.mainFrame.command.Submit(cmd.GuiToggleDroneCommand(fitID, self.original.index(drone)))
def scheduleMenu(self, event):
event.Skip()