diff options
| author | Bobby <[email protected]> | 2024-09-08 18:34:58 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2024-09-08 18:34:58 -0400 |
| commit | e25611bde49fe2db28a006aca3ea49eece046c5f (patch) | |
| tree | dae68f8784010ff9002fe0e3c5d228879c15a25f /screens/screens.go | |
| parent | 61bc5b38044bc52442415f83390ba72ed3b27491 (diff) | |
| download | yato-main.tar.xz yato-main.zip | |
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() } |
