aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--classes/BowelyzerConfig.sc5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/BowelyzerConfig.sc b/classes/BowelyzerConfig.sc
index 69ee1d4..df36126 100644
--- a/classes/BowelyzerConfig.sc
+++ b/classes/BowelyzerConfig.sc
@@ -326,6 +326,7 @@ BowelyzerConfig{
if(writeFinished && overwriteConfigFilePath, {
configFilePath = fileName;
});
+ ^true;
}
// return a control value as correct type and within its defined ControlSpec range
@@ -389,9 +390,9 @@ BowelyzerConfig{
});
// go through the inputs and add controls, if there are none setup for them
config.at(\inputs).keysValuesDo({|name, channel|
- // if there are no controls defined for the input, add them from default
+ // if there are no controls defined for the input at all, add a Dictionary the size of the defaultControls
if(config.at(\controls).includesKey(name).not,{
- config.at(\controls).put(name, defaultControls);
+ config.at(\controls).put(name, Dictionary.new(defaultControls.size));
});
});
// go through each control dictionary