Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure and model install TUI tweaks #3519

Merged
merged 2 commits into from
Jun 26, 2023
Merged

Conversation

lstein
Copy link
Collaborator

@lstein lstein commented Jun 8, 2023

The installer TUI requires a minimum window width and height to provide a satisfactory user experience. If, after trying and exhausting all means of enlarging the window (on Linux, Mac and Windows) the window is still too small, this PR generates a message telling the user to enlarge the window and pausing until they do so. If the user fails to enlarge the window the program will proceed, and either issue an error message that it can't continue (on Windows), or show a clipped display that the user can remedy by enlarging the window.

@hipsterusername
Copy link
Member

A most elegant solution.

@ebr
Copy link
Member

ebr commented Jun 26, 2023

Should this be rolled into #3547 , or merged separately following that?

@lstein
Copy link
Collaborator Author

lstein commented Jun 26, 2023

Should this be rolled into #3547 , or merged separately following that?

This should be merged separately. Either one can be merged first and I will resolve any conflicts before merging the second.

@lstein lstein enabled auto-merge June 26, 2023 19:06
Copy link
Member

@ebr ebr left a comment

Choose a reason for hiding this comment

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

Tested by merging with #3547 locally (to work around 'model type "main"' errors)

[2023-06-26 16:00:49,153]::[InvokeAI]::ERROR --> Insufficient horizontal space for the interface. Please make your window wider and try again.
  • works 👍 as expected on Gnome terminal.
  • still line wrapping (also as expected) on 3rd party terminals that do not respond to being resized programmatically.
  • But , this PR fixes the crash when 3rd party terminals (e.g. Terminator) are resized to fixe the line wrapping - the above message is printed instead.

All works great from my perspective!

@lstein lstein merged commit 3c30368 into main Jun 26, 2023
6 checks passed
@lstein lstein deleted the lstein/tweak-installer-ui branch June 26, 2023 20:08
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.

3 participants