diff --git a/cmd/root.go b/cmd/root.go index 8ca1ec9..1844d45 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -83,7 +83,6 @@ var rootCmd = &cobra.Command{ m := tui.New(cfg) p := tea.NewProgram(m, tea.WithAltScreen()) - p.SetWindowTitle("FM") if _, err := p.Run(); err != nil { log.Fatal("Failed to start fm", err) diff --git a/internal/tui/init.go b/internal/tui/init.go index f2c45dc..b69cf99 100644 --- a/internal/tui/init.go +++ b/internal/tui/init.go @@ -11,5 +11,6 @@ func (m model) Init() tea.Cmd { m.filetree.Init(), m.secondaryFiletree.Init(), textinput.Blink, + tea.SetWindowTitle("FM"), ) }