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:
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)
|
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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue