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:
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();
+ });
}
}