Skip to content

feat: Clear view when quitting setup - #129

Merged
dbolson merged 1 commit into
mainfrom
small-formatting
Apr 4, 2024
Merged

feat: Clear view when quitting setup#129
dbolson merged 1 commit into
mainfrom
small-formatting

Conversation

@dbolson

@dbolson dbolson commented Apr 4, 2024

Copy link
Copy Markdown
Contributor

When quitting setup, set the view to "" so it doesn't leave text behind in the terminal.

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Related issues

Provide links to any issues in this repository or elsewhere relating to this pull request.

Describe the solution you've provided

Provide a clear and concise description of what you expect to happen.

Describe alternatives you've considered

Provide a clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context about the pull request here.

func NewChooseSDKModel(selectedIndex int) tea.Model {
l := list.New(sdksToItems(), sdkDelegate{}, 30, 14)
l.Title = "Select your SDK:\n\n" // extra newlines to show pagination
l.Title = "Select your SDK:\n"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This should be consistent with the other views.

return out
}

if m.quitting {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This comes after the error check since that may force-quit the app.

@dbolson
dbolson merged commit 6ef4208 into main Apr 4, 2024
@dbolson
dbolson deleted the small-formatting branch April 4, 2024 20:45
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