Only apply default settings at the initial setup of an engine

Means that swapping between test modes or tune modes will not reapply the default settings
This commit is contained in:
andrew committed 2023-12-04 11:13:30 -05:00
1 parent 71f5b0bc97
commit 8e14f1c0b2
1 file changed
+2 -2
+2 -2
View File
@@ -183,8 +183,7 @@ function retain_specific_options(engine, preset, workload_type) {
function apply_preset(preset, workload_type) {
// Add the defaults to the preset-specific options
const settings = add_defaults_to_preset(get_dev_engine(), preset, workload_type)
const settings = get_presets(get_dev_engine(), preset, workload_type)
for (const option in settings) {
@@ -221,6 +220,7 @@ function change_engine(engine, target, workload_type) {
if (target == 'dev' && workload_type == 'TEST')
set_engine(engine, 'base');
apply_preset('default', workload_type);
apply_preset('STC', workload_type);
}