diff --git a/main.go b/main.go index fa87ac5..1bd5321 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( "github.com/rivo/tview" ) -const version = "1.0.0" +const version = "1.0.1" func main() { newUser, selectedUser := ui.CliView(version) diff --git a/ui/mainview.go b/ui/mainview.go index 94e6589..a0e76f5 100644 --- a/ui/mainview.go +++ b/ui/mainview.go @@ -83,6 +83,8 @@ func mainViewUI(mv *TutView) *tview.Flex { list.AddItem(feedList(mv), 0, 1, false). AddItem(notificationList(mv), 0, 1, false) } + } else if !mv.tut.Config.General.NotificationFeed { + list.AddItem(feedList(mv), 0, 1, false) } fc := mv.Timeline.GetFeedContent(showMain) content := fc.Main diff --git a/ui/timeline.go b/ui/timeline.go index 96fe516..8dd587f 100644 --- a/ui/timeline.go +++ b/ui/timeline.go @@ -54,6 +54,7 @@ func (tl *Timeline) RemoveCurrent(quit bool) { return } if len(tl.Feeds) == 1 && quit { + tl.tutView.tut.App.Stop() os.Exit(0) } tl.Feeds[tl.FeedIndex].Data.Close() diff --git a/ui/tutview.go b/ui/tutview.go index f9d4ed0..dacce65 100644 --- a/ui/tutview.go +++ b/ui/tutview.go @@ -104,6 +104,7 @@ func (tv *TutView) loggedIn(acc auth.Account) { me, err := client.GetAccountCurrentUser(context.Background()) if err != nil { fmt.Printf("Couldn't login. Error %s\n", err) + tv.tut.App.Stop() os.Exit(1) } ac := &api.AccountClient{