Finish overhauling module-related fit commands

This commit is contained in:
DarkPhoenix
2019-04-12 14:32:25 +03:00
parent e5a694384d
commit d738ba615e
11 changed files with 132 additions and 193 deletions

View File

@@ -200,10 +200,13 @@ class HandledModuleList(HandledList):
dummy = mod.buildEmpty(mod.slot)
dummy.position = index
self[index] = dummy
mod.position = None
def __toModule(self, index, mod):
oldMod = self[index]
mod.position = index
self[index] = mod
oldMod.position = None
@deprecated
def freeSlot(self, slot):