gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit d2034440e5a30b9cb36a9123ea990a95c7876377
parent ebdc380905e1360032d38123476af009ce67a78f
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Tue, 10 Sep 2024 22:19:13 +0200

add menu entry to open skins folder in file browser

Diffstat:
Mdoc/changelog.txt | 5+++++
Msource/jucePluginEditorLib/pluginEditorState.cpp | 11++++++++++-
2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/doc/changelog.txt b/doc/changelog.txt @@ -1,5 +1,10 @@ Release Notes +1.3.21 + +- [Imp] Added new entry to 'Skins' submenu to open the skins folder in the default + file browser + 1.3.20 Framework: diff --git a/source/jucePluginEditorLib/pluginEditorState.cpp b/source/jucePluginEditorLib/pluginEditorState.cpp @@ -216,7 +216,16 @@ void PluginEditorState::openMenu(const juce::MouseEvent* _event) if(editor) { skinMenu.addSeparator(); - skinMenu.addItem("Export current skin to '" + m_skinFolderName + "' folder on disk", true, false, [this]{exportCurrentSkin();}); + skinMenu.addItem("Export current skin to folder '" + m_skinFolderName + "' on disk", true, false, [this] + { + exportCurrentSkin(); + }); + skinMenu.addItem("Open folder '" + m_skinFolderName + "' in File Browser", true, false, [this] + { + const auto dir = synthLib::getModulePath() + m_skinFolderName; + synthLib::createDirectory(dir); + juce::File(dir).revealToUser(); + }); } }