소스 검색

fix: pass cfg to Layout while initialization

ayn2op 1 년 전
부모
커밋
6a476e612d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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(),