2
0
Fork 0

Update PluginProcessor.cpp

This commit is contained in:
George Reales 2021-04-02 09:09:59 +02:00
parent bb86d53cae
commit 27ada371d1

View file

@ -517,13 +517,13 @@ bool ObxdAudioProcessor::savePreset(const File& fxpFile) {
void ObxdAudioProcessor::changePresetName(const String &name){ void ObxdAudioProcessor::changePresetName(const String &name){
programs.currentProgramPtr->name = name; programs.currentProgramPtr->name = name;
//savePreset(); //savePreset();
saveBank(); //saveBank();
} }
void ObxdAudioProcessor::deletePreset(){ void ObxdAudioProcessor::deletePreset(){
programs.currentProgramPtr->setDefaultValues(); programs.currentProgramPtr->setDefaultValues();
programs.currentProgramPtr->name = "Default"; programs.currentProgramPtr->name = "Default";
saveBank(); //saveBank();
} }
void ObxdAudioProcessor::newPreset(const String &name) { void ObxdAudioProcessor::newPreset(const String &name) {
@ -535,7 +535,7 @@ void ObxdAudioProcessor::newPreset(const String &name) {
} }
} }
//savePreset(); //savePreset();
saveBank(); //saveBank();
} }
void ObxdAudioProcessor::savePreset() { void ObxdAudioProcessor::savePreset() {