gui: fixed issue not displaying emane configs that are generally configured for a node, was attempting only interface specific or emane net fallback

This commit is contained in:
Blake Harnden 2022-12-09 10:29:41 -08:00
parent 9ccb1880a1
commit f422d05215

View file

@ -37,6 +37,8 @@ class EmaneModelDialog(Dialog):
self.has_error: bool = False self.has_error: bool = False
try: try:
config = self.node.emane_model_configs.get((self.model, self.iface_id)) config = self.node.emane_model_configs.get((self.model, self.iface_id))
if not config:
config = self.node.emane_model_configs.get((self.model, None))
if not config: if not config:
config = self.app.core.get_emane_model_config( config = self.app.core.get_emane_model_config(
self.node.id, self.model, self.iface_id self.node.id, self.model, self.iface_id