Re-enable old tui, until new tui is done

This commit is contained in:
HikariKnight 2023-10-26 20:45:11 +02:00
parent c1ea5e5163
commit 2e1e6cda11

View file

@ -7,7 +7,6 @@ import (
"os" "os"
"github.com/HikariKnight/ls-iommu/pkg/errorcheck" "github.com/HikariKnight/ls-iommu/pkg/errorcheck"
"github.com/HikariKnight/quickpassthrough/internal/pages"
tea "github.com/charmbracelet/bubbletea" tea "github.com/charmbracelet/bubbletea"
) )
@ -19,13 +18,14 @@ func Tui() {
errorcheck.ErrorCheck(err, "Error creating log file") errorcheck.ErrorCheck(err, "Error creating log file")
defer logfile.Close() defer logfile.Close()
pages.Welcome() // New WIP Tui
//pages.Welcome()
// Make a blank model to keep our state in // Make a blank model to keep our state in
/*m := NewModel() m := NewModel()
// Start the program with the model // Start the program with the model
p := tea.NewProgram(m, tea.WithAltScreen()) p := tea.NewProgram(m, tea.WithAltScreen())
_, err = p.Run() _, err = p.Run()
errorcheck.ErrorCheck(err, "Failed to initialize UI")*/ errorcheck.ErrorCheck(err, "Failed to initialize UI")
} }