make sure to use alt screen
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user