Modifying tasks works
This commit is contained in:
+8
-3
@@ -11,6 +11,13 @@ import (
|
||||
termbox "github.com/nsf/termbox-go"
|
||||
)
|
||||
|
||||
const (
|
||||
ScreenIdMain = iota
|
||||
ScreenIdTask
|
||||
ScreenIdAbout
|
||||
ScreenIdExit
|
||||
)
|
||||
|
||||
type AppState struct {
|
||||
Name string
|
||||
Version int
|
||||
@@ -42,8 +49,6 @@ const (
|
||||
TitleBg = termbox.ColorBlue
|
||||
CursorFg = termbox.ColorBlack
|
||||
CursorBg = termbox.ColorGreen
|
||||
|
||||
ExitScreenId = -1
|
||||
)
|
||||
|
||||
func NewApp() *AppState {
|
||||
@@ -70,7 +75,7 @@ func (a *AppState) run(parms []string) int {
|
||||
mainBundle := termboxScreen.Bundle{}
|
||||
mainBundle.SetValue(MainBundleListKey, MainBundleListTodo)
|
||||
|
||||
if err := a.uiManager.InitializeScreen(MainScreenId, mainBundle); err != nil {
|
||||
if err := a.uiManager.InitializeScreen(ScreenIdMain, mainBundle); err != nil {
|
||||
return 1
|
||||
}
|
||||
if err := a.uiManager.Loop(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user