Quick fix to menu action

This commit is contained in:
MatCat 2021-03-08 21:01:26 -08:00
parent bc315e2d37
commit bb91f85cef

View File

@ -153,7 +153,9 @@ rcm_Disconect.addEventListener('click', function(evt) {
let tfm_Disconect = document.getElementById("tfm_Disconnect");
tfm_Disconect.addEventListener('click', function(evt) {
logicEngine.ActiveContainer.Selected.Disconnect();
for (let a = 0; a < logicEngine.ActiveContainer.Selected.length;a++) {
logicEngine.ActiveContainer.Selected[a]?.Disconnect();
}
logicEngine.ActiveContainer.Disconnect(logicEngine.ActiveContainer.Selected);
setTimeout(function(){hideMenus()},10);
});