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 ce1fc5c04f97f472ece9b430d8a40de12ba57bc9
parent 8bb9440d668eab7aefbe563cf9cadeec440bbe89
Author: Mario Kruselj <mario.kruselj@gmail.com>
Date:   Mon, 26 Aug 2024 01:28:43 +0200

Cleaner looking skin submenu

The user doesn't really need to know the file extension, and I would say that the relative path to skin is also not really important.
It would probably be better to add an option to reveal the currently selected skin in Explorer/Finder instead (in a separate PR).

Diffstat:
Msource/jucePluginEditorLib/pluginEditorState.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/jucePluginEditorLib/pluginEditorState.cpp b/source/jucePluginEditorLib/pluginEditorState.cpp @@ -201,7 +201,7 @@ void PluginEditorState::openMenu(const juce::MouseEvent* _event) const auto pathEndPos = jsonName.find_last_of("/\\"); if(pathEndPos != std::string::npos) jsonName = file.substr(pathEndPos+1); - const Skin skin{jsonName + " (" + relativePath + ")", jsonName, relativePath}; + const Skin skin{jsonName.substr(0, jsonName.length() - 5), jsonName, relativePath}; addSkinEntry(skin); } } @@ -389,7 +389,7 @@ void PluginEditorState::openMenu(const juce::MouseEvent* _event) { if(!allowAdvanced) { - if(juce::NativeMessageBox::showOkCancelBox(juce::AlertWindow::WarningIcon, "Warning", + if(juce::NativeMessageBox::showOkCancelBox(juce::AlertWindow::WarningIcon, "Warning", "Changing these settings may cause instability of the plugin.\n" "\n" "Please confirm to continue.")