diff options
Diffstat (limited to 'screens/screens.go')
| -rw-r--r-- | screens/screens.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/screens/screens.go b/screens/screens.go index 1675ec7..f04878f 100644 --- a/screens/screens.go +++ b/screens/screens.go @@ -2,6 +2,7 @@ package screens import ( "os" + "yato/lib" tea "github.com/charmbracelet/bubbletea" "golang.org/x/term" @@ -12,8 +13,9 @@ type ScreenSwitcher struct { } type Globals struct { - width int - height int + width int + height int + CurrentUser *lib.MALUser } var globals Globals @@ -65,5 +67,7 @@ func Initialize() tea.Model { globals.width = width globals.height = height + globals.CurrentUser, _ = lib.CurrentUser() + return screen() } |
