Skip to content

Commit

Permalink
fix: session not getting closed properly
Browse files Browse the repository at this point in the history
  • Loading branch information
BigJk committed Dec 14, 2023
1 parent b436af9 commit e0ee445
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/menus/overview/overview.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ func (m MenuModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.listFocus = !m.listFocus
case tea.KeyEnter:
if m.list.SelectedItem().(choiceItem).key == ChoiceQuit {
m.Session.Close()
return nil, nil
}
case tea.KeyDown:
Expand Down

0 comments on commit e0ee445

Please sign in to comment.