Change command fit state changing command to support multi-selection

This commit is contained in:
DarkPhoenix
2019-04-25 19:27:36 +03:00
parent 3d70d9e37c
commit 6703a08976
8 changed files with 92 additions and 53 deletions

View File

@@ -185,7 +185,8 @@ class CommandView(d.Display):
col = self.getColumn(event.Position)
if col == self.getColIndex(State):
fitID = self.mainFrame.getActiveFit()
self.mainFrame.command.Submit(cmd.GuiToggleCommandFitStateCommand(fitID, item.ID))
self.mainFrame.command.Submit(cmd.GuiToggleCommandFitStatesCommand(
fitID=fitID, mainCommandFitID=item.ID, commandFitIDs=[item.ID]))
def spawnMenu(self, event):
fitID = self.mainFrame.getActiveFit()