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

Allow use of mutiple styles csv files #14125

Merged
merged 5 commits into from
Dec 2, 2023

Conversation

MisterSeajay
Copy link
Contributor

Description

Usage

To enable the multiple CSV functionality it is sufficient to add or amend the --styles-file command-line argument to include a wildcard * in the CSV file name, e.g. --styles-file=\path\to\styles*.csv. This will load all files matching the wildcarded file name.

The styles drop-down groups styles according to the file they were loaded from and inserts markers within the list to indicate which file the subsequent styles have been loaded from.

Edited styles are pushed to the bottom of the list of styles (no change to existing behavior). When an existing style is edited and saved, it will be saved to the same file that it was loaded from. New styles are always added back to the default styles.csv.

If the command line argument is omitted, or points to exactly one file, then the default behavior of using just that one file is maintained.

Checklist:

@AUTOMATIC1111 AUTOMATIC1111 merged commit ef1723e into AUTOMATIC1111:dev Dec 2, 2023
3 checks passed
This was referenced Dec 4, 2023
@w-e-w w-e-w mentioned this pull request Dec 16, 2023
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