Falls das Modell nach einem Key gefragt wird, den es nicht gibt, als Default none zurück
This commit is contained in:
+4
-1
@@ -182,7 +182,10 @@ class CadItem():
|
||||
self.gui_data[key] = val
|
||||
|
||||
def get_gui_data(self, key):
|
||||
return self.gui_data[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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user