Skip to content

chore: multiple code cleanups#27

Open
Wondertan wants to merge 1 commit intofeature/ui-refactorfrom
chore/ui-refactor/cleanup
Open

chore: multiple code cleanups#27
Wondertan wants to merge 1 commit intofeature/ui-refactorfrom
chore/ui-refactor/cleanup

Conversation

@Wondertan
Copy link
Member

Just a bunch of code cleanups over #26 that I was too lazy to split into multiple commits.
Not yet been manually tested and might need some additional polishing.

@Wondertan Wondertan requested a review from cortze June 29, 2022 14:51
@Wondertan Wondertan self-assigned this Jun 29, 2022
// end signals the event loop to exit gracefully
func (ui *TerminalManager) end() {
ui.doneCh <- struct{}{}
return ui.app.Run()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

definitely a better way of managing the "bocking" app.Run() call

}
w.tm = NewTerminalManager(w.CurrentGame)

return w.tm.Run(ctx, &w.uiInitialized)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, I have to get used to returning the result of the underlying call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants