You can now remove structural connection conditions + minor mods

This commit is contained in:
Jesusbill
2021-03-31 18:58:02 +02:00
parent 1631dc39f5
commit 1820f72bc4
5 changed files with 44 additions and 19 deletions
@@ -8,7 +8,6 @@ class Usecase:
def execute(self):
if not self.settings["connection"].AppliedCondition:
return
if len(self.file.get_inverse(self.settings["connection"].AppliedCondition)) > 1:
self.settings["connection"].AppliedCondition = None
else:
if len(self.file.get_inverse(self.settings["connection"].AppliedCondition)) == 1:
self.file.remove(self.settings["connection"].AppliedCondition)
self.settings["connection"].AppliedCondition = None