1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2025-01-18 13:49:29 +00:00

added initial page setup

This commit is contained in:
postmannen 2021-06-30 07:19:36 +02:00
parent bfff09e57a
commit f05fc336fa

View file

@ -37,7 +37,10 @@ func (s *Stew) Start() error {
slide := messageSlide(app) slide := messageSlide(app)
if err := app.SetRoot(slide, true).EnableMouse(true).Run(); err != nil { pages := tview.NewPages()
pages.AddPage("message", slide, true, true)
if err := app.SetRoot(pages, true).EnableMouse(true).Run(); err != nil {
panic(err) panic(err)
} }