Skip to content

Commit

Permalink
Fix linking in standalone mode
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Feb 10, 2021
1 parent 9178a34 commit 0634969
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/linkgen/linkgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ type errMsg struct {
// NewProgram is a simple wrapper for tea.NewProgram. For use in standalone
// mode.
func NewProgram(cfg *charm.Config) *tea.Program {
return tea.NewProgram(NewModel(cfg))
m := NewModel(cfg)
m.standalone = true
return tea.NewProgram(m)
}

// Model is the tea model for the link initiator program.
Expand Down Expand Up @@ -95,6 +97,7 @@ func NewModel(cfg *charm.Config) Model {
return Model{
lh: lh,
standalone: false,
cfg: cfg,
Quit: false,
Exit: false,
err: nil,
Expand Down

0 comments on commit 0634969

Please sign in to comment.