make sure to use alt screen

This commit is contained in:
Robin Olsen
2026-03-18 14:31:36 +01:00
parent 3e9a903506
commit 2ebb8be83b
2 changed files with 3 additions and 13 deletions

View File

@@ -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
}

View File

@@ -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)
}