Sfoglia il codice sorgente

add loader id to parsed attributes of a panel

fakke 4 anni fa
parent
commit
8eab2950d1
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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))
 	}