mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
added initial page setup
This commit is contained in:
parent
bfff09e57a
commit
f05fc336fa
1 changed files with 4 additions and 1 deletions
|
@ -37,7 +37,10 @@ func (s *Stew) Start() error {
|
|||
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue