Falls das Modell nach einem Key gefragt wird, den es nicht gibt, als Default none zurück

This commit is contained in:
2024-02-05 21:51:33 +01:00
parent f8c660e1ee
commit dc24a2593a
+3
View File
@@ -182,7 +182,10 @@ class CadItem():
self.gui_data[key] = val
def get_gui_data(self, key):
if key in self.gui_data:
return self.gui_data[key]
else:
return None
def get_all_gui_data(self):
return self.gui_data