Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessOne91 committed Jul 11, 2024
1 parent 0bacc14 commit 7b44787
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tui/models/interfaces_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package tui

import (
"net"
"time"

"github.com/charmbracelet/bubbles/list"
tea "github.com/charmbracelet/bubbletea"
Expand Down Expand Up @@ -85,6 +86,7 @@ func fetchInterfaces() tea.Cmd {
if err != nil {
return errMsg(err)
}
time.Sleep(2 * time.Second)
return networkInterfacesMsg(ifaces)
}
}
5 changes: 2 additions & 3 deletions tui/models/start_menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"net"

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
)

type startMenuModel struct {
Expand Down Expand Up @@ -79,7 +78,7 @@ func (m startMenuModel) View() string {
case selectProtocol:
s = m.protoList.l.View()
default:
return "Unkown step"
s = "Unkown step"
}
return lipgloss.NewStyle().Padding(1).Render(s)
return s
}

0 comments on commit 7b44787

Please sign in to comment.