Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Commit 0634969

Browse files
committed
Fix linking in standalone mode
1 parent 9178a34 commit 0634969

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ui/linkgen/linkgen.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ type errMsg struct {
3939
// NewProgram is a simple wrapper for tea.NewProgram. For use in standalone
4040
// mode.
4141
func NewProgram(cfg *charm.Config) *tea.Program {
42-
return tea.NewProgram(NewModel(cfg))
42+
m := NewModel(cfg)
43+
m.standalone = true
44+
return tea.NewProgram(m)
4345
}
4446

4547
// Model is the tea model for the link initiator program.
@@ -95,6 +97,7 @@ func NewModel(cfg *charm.Config) Model {
9597
return Model{
9698
lh: lh,
9799
standalone: false,
100+
cfg: cfg,
98101
Quit: false,
99102
Exit: false,
100103
err: nil,

0 commit comments

Comments
 (0)