Skip to content

Conversation

@RafaelEstevamReis
Copy link

A lot of places publishes their prompts in the same format

[Positive]
Negative Prompt: [negative]
[settings]

This small PR parses a prompt in the clipboard and updates the UI

I tried to keep all styles and structure

  • I used OsUtils.cs to check for clipboard content
  • I used Data.TtiSettings to transport and migrate the settings
  • I used FormParsing.LoadTtiSettingsIntoUi to update the UI
  • All "old" settings params will be preserved if no new value is present in the settings list

I did not know a good place to put the action, so I placed it inside the Dev menu as Import prompt from clipboard

If I miss anything, let me know
Thanks in advance

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.

1 participant