File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package tui
2
2
3
3
import (
4
4
"net"
5
+ "time"
5
6
6
7
"github.com/charmbracelet/bubbles/list"
7
8
tea "github.com/charmbracelet/bubbletea"
@@ -85,6 +86,7 @@ func fetchInterfaces() tea.Cmd {
85
86
if err != nil {
86
87
return errMsg (err )
87
88
}
89
+ time .Sleep (2 * time .Second )
88
90
return networkInterfacesMsg (ifaces )
89
91
}
90
92
}
Original file line number Diff line number Diff line change 4
4
"net"
5
5
6
6
tea "github.com/charmbracelet/bubbletea"
7
- "github.com/charmbracelet/lipgloss"
8
7
)
9
8
10
9
type startMenuModel struct {
@@ -79,7 +78,7 @@ func (m startMenuModel) View() string {
79
78
case selectProtocol :
80
79
s = m .protoList .l .View ()
81
80
default :
82
- return "Unkown step"
81
+ s = "Unkown step"
83
82
}
84
- return lipgloss . NewStyle (). Padding ( 1 ). Render ( s )
83
+ return s
85
84
}
You can’t perform that action at this time.
0 commit comments