Skip to content
This repository was archived by the owner on Feb 3, 2023. It is now read-only.

Commit 86bf8c3

Browse files
committed
fix edit enabled host
1 parent 2f97223 commit 86bf8c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tui/editor_view.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ func (v *EditorView) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
7777
host.SetContent([]byte(v.hostEditor.Value()))
7878
svc.UpdateNode(v.hostNode)
7979
v.SetSaved()
80+
// Refresh the system host if host was enabled
81+
if v.hostNode.IsEnabled() {
82+
svc.ApplyHost(svc.CombineEnabledHosts())
83+
}
8084
}
8185
case key.Matches(m, keys.Up, keys.Down):
8286
v.hostEditor, cmd = v.hostEditor.Update(msg)

0 commit comments

Comments
 (0)