Make variations menu actually swap out module

Functional, but not handling multiple selections well
This commit is contained in:
Will Wykeham
2015-08-16 18:30:27 +01:00
parent 97ac0804c5
commit 7f100353e2
3 changed files with 63 additions and 2 deletions

View File

@@ -159,6 +159,10 @@ class HandledModuleList(HandledList):
dummy.position = index
self[index] = dummy
def toModule(self, index, mod):
mod.position = index
self[index] = mod
def freeSlot(self, slot):
for i in range(len(self) -1, -1, -1):
mod = self[i]