瀏覽代碼

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(),