Parcourir la source

fix: pass cfg to Layout while initialization

ayn2op il y a 1 an
Parent
commit
6a476e612d
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      cmd/layout.go

+ 1 - 0
cmd/layout.go

@@ -22,6 +22,7 @@ type Layout struct {
 func newLayout(cfg *config.Config) *Layout {
 	app := tview.NewApplication()
 	l := &Layout{
+		cfg:  cfg,
 		app:  app,
 		flex: tview.NewFlex(),