improved preset selection logic

This commit is contained in:
Stefan Daniel Schwarz
2023-08-23 22:22:52 +02:00
parent 9b932dfa15
commit 7cafa5d374
2 changed files with 70 additions and 41 deletions

View File

@ -936,10 +936,12 @@ function loadContextSettings() {
}
});
// Select matching instruct preset
for (const instruct_preset of instruct_presets) {
// If instruct preset matches the context template
if (instruct_preset.name === name) {
selectInstructPreset(name);
selectInstructPreset(instruct_preset.name);
break;
}
}
});