mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Combine system preview generation options (#2328)
This commit is contained in:
@@ -51,12 +51,14 @@ export const GenerateDialog: React.FC<ISceneGenerateDialog> = ({
|
||||
return;
|
||||
}
|
||||
|
||||
// combine the defaults with the system preview generation settings
|
||||
if (configuration?.defaults.generate) {
|
||||
const { generate } = configuration.defaults;
|
||||
setOptions(withoutTypename(generate));
|
||||
setConfigRead(true);
|
||||
} else if (configuration?.general) {
|
||||
// backwards compatibility
|
||||
}
|
||||
|
||||
if (configuration?.general) {
|
||||
const { general } = configuration;
|
||||
setOptions((existing) => ({
|
||||
...existing,
|
||||
|
||||
Reference in New Issue
Block a user