MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / Poll

Method Poll

Source/ModuleSaveDataPanel.cpp:216–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void ModuleSaveDataPanel::Poll()
217{
218 using namespace juce;
219
220 if (mPresetFileUpdateQueued)
221 {
222 mPresetFileUpdateQueued = false;
223 if (mSaveModule != nullptr && !TheSynth->IsLoadingState() && mPresetFileIndex >= 0 && mPresetFileIndex < (int)mPresetFilePaths.size())
224 {
225 LoadPreset(mSaveModule, mPresetFilePaths[mPresetFileIndex]);
226 }
227 }
228}
229
230//static
231void ModuleSaveDataPanel::LoadPreset(IDrawableModule* module, std::string presetFilePath)

Callers

nothing calls this directly

Calls 2

IsLoadingStateMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected