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