Procházet zdrojové kódy

Merge pull request #258 from fakke/node_loaderid

add loader id to parsed attributes of a panel
Daniel Salvadori před 4 roky
rodič
revize
e5e6830dae
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      gui/builder.go

+ 4 - 0
gui/builder.go

@@ -563,6 +563,10 @@ func (b *Builder) SetAttribs(am map[string]interface{}, ipan IPanel) error {
 		panel.SetName(am[AttribName].(string))
 	}
 
+	if am[AttribId] != nil {
+		panel.SetLoaderID(am[AttribId].(string))
+	}
+
 	if am[AttribVisible] != nil {
 		panel.SetVisible(am[AttribVisible].(bool))
 	}