AnalogTapeModel

Physical modelling signal processing for analog tape recording
Log | Files | Refs | Submodules | README | LICENSE

commit 3c8eca50d9c2b835d430bb0351b2298c442c6f98
parent ab24a79908828b029f10ab36ff628da2819659b0
Author: Jatin Chowdhury <[email protected]>
Date:   Sat, 18 Sep 2021 15:22:36 -0700

Update to JUCE 6.1.1

Diffstat:
MPlugin/Source/Presets/PresetManager.cpp | 21+++++++++++----------
MPlugin/Source/Presets/PresetManager.h | 1+
MPlugin/modules/CMakeLists.txt | 1-
3 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/Plugin/Source/Presets/PresetManager.cpp b/Plugin/Source/Presets/PresetManager.cpp @@ -204,16 +204,17 @@ File PresetManager::getUserPresetConfigFile() const void PresetManager::chooseUserPresetFolder() { #if ! JUCE_IOS - FileChooser chooser ("Choose preset folder"); - if (chooser.browseForDirectory()) - { - auto result = chooser.getResult(); - auto config = getUserPresetConfigFile(); - config.deleteFile(); - config.create(); - config.replaceWithText (result.getFullPathName()); - updateUserPresets(); - } + constexpr auto flags = FileBrowserComponent::openMode | FileBrowserComponent::canSelectDirectories; + fileChooser = std::make_shared<FileChooser> ("Choose preset folder"); + fileChooser->launchAsync (flags, [=] (const FileChooser& fc) + { + auto result = fc.getResult(); + auto config = getUserPresetConfigFile(); + config.deleteFile(); + config.create(); + config.replaceWithText (result.getFullPathName()); + updateUserPresets(); + }); #endif } diff --git a/Plugin/Source/Presets/PresetManager.h b/Plugin/Source/Presets/PresetManager.h @@ -57,6 +57,7 @@ private: int maxIdx = 0; ListenerList<Listener> listeners; + std::shared_ptr<FileChooser> fileChooser; JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PresetManager) }; diff --git a/Plugin/modules/CMakeLists.txt b/Plugin/modules/CMakeLists.txt @@ -41,7 +41,6 @@ target_compile_definitions(juce_plugin_modules JUCE_WEB_BROWSER=0 JUCE_USE_CURL=0 JUCE_VST3_CAN_REPLACE_VST2=0 - JUCE_MODAL_LOOPS_PERMITTED=$<IF:$<PLATFORM_ID:iOS>,0,1> FOLEYS_SHOW_GUI_EDITOR_PALLETTE=0 FOLEYS_ENABLE_BINARY_DATA=1 CHOWDSP_USE_XSIMD=1