diff --git a/pkg/tui/views/root.go b/pkg/tui/views/root.go index ea51efa..fc8118d 100644 --- a/pkg/tui/views/root.go +++ b/pkg/tui/views/root.go @@ -82,5 +82,7 @@ func (r *RootModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } func (r *RootModel) View() tea.View { - return r.currentView.View() + v := r.currentView.View() + v.AltScreen = true + return v } diff --git a/pkg/tui/views/views.go b/pkg/tui/views/views.go deleted file mode 100644 index e26dbd7..0000000 --- a/pkg/tui/views/views.go +++ /dev/null @@ -1,12 +0,0 @@ -package views - -import ( - "github.com/LazyBachelor/LazyPM/internal/app" - "github.com/LazyBachelor/LazyPM/internal/models" - "github.com/LazyBachelor/LazyPM/pkg/tui/views/dashboard" -) - -func NewDashboardView(app *app.App, feedbackChan chan models.ValidationFeedback, quitChan chan bool, submitChan chan<- struct{}) *dashboard.Model { - return dashboard.NewDashboard(app, feedbackChan, quitChan, submitChan) -} -