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 225a9ed7132c854fc2f6773ef928114b5d2e910f
parent 4e2c7c80c83e8965fd814f87962aaf302c206729
Author: dsp56300 <87139854+dsp56300@users.noreply.github.com>
Date:   Tue, 27 Aug 2024 21:59:17 +0200

Merge pull request #220 from mkruselj/cleaner-skin-submenu

Cleaner looking skin submenu
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.")