Fixing bugs when deleting object with dependencies.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ad5001 2021-09-23 16:17:57 +02:00
parent 0ae301fea0
commit 5f82a3e3a4
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
2 changed files with 1 additions and 16 deletions

View file

@ -105,7 +105,7 @@ class DrawableObject {
delete() {
for(var toRemove of this.requiredBy) {
toRemove.delete()
currentObjects[toRemove.type] = currentObjects[toRemove.type].filter(obj => obj.name != toRemove.name)
Objects.currentObjects[toRemove.type] = Objects.currentObjects[toRemove.type].filter(obj => obj.name != toRemove.name)
}
}

View file

@ -1,15 +0,0 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=LogarithmPlotter
GenericName=2D plotter software
GenericName[fr]=Logiciel de traçage 2D
Comment=Create BODE diagrams, sequences and repartition functions.
Comment[fr]=Créer des diagrammes de BODE, des suites et des fonctions de répartition.
Exec=/usr/bin/python3 /home/ad5001/Apps/LogarithmPlotter//run.py %f
Icon=logarithmplotter
MimeType=application/x-logarithm-plot;
Terminal=false
StartupNotify=false
Categories=Math