Browse Source

BLOCKS: Ensure that the program loaded callback is called when program passed to setProgram is identical to what's already loaded

tags/2021-05-28
Agnieszka Janowicz Tom Poole 6 years ago
parent
commit
fdcebfe6a2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_blocks_basics/topology/internal/juce_BlockImplementation.cpp

+ 2
- 2
modules/juce_blocks_basics/topology/internal/juce_BlockImplementation.cpp View File

@@ -271,8 +271,6 @@ public:
return Result::ok();
}
stopTimer();
{
std::unique_ptr<Program> p (newProgram);
@@ -284,6 +282,8 @@ public:
std::swap (program, p);
}
stopTimer();
programSize = 0;
isProgramLoaded = shouldSaveProgramAsDefault = false;


Loading…
Cancel
Save