Skip to content
New issue

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

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

Already on GitHub? # to your account

Import prompt and settings from clipboard #81

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant