Browse Source

Add author email to Model context menu.

tags/v2.1.2
Andrew Belt 2 years ago
parent
commit
2838b33525
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      src/plugin/Model.cpp

+ 8
- 0
src/plugin/Model.cpp View File

@@ -10,6 +10,7 @@
#include <ui/Menu.hpp>
#include <ui/MenuSeparator.hpp>
#include <helpers.hpp>
#include <window/Window.hpp>


namespace rack {
@@ -173,6 +174,13 @@ void Model::appendContextMenu(ui::Menu* menu, bool inBrowser) {
}));
}

// author email
if (plugin->authorEmail != "") {
menu->addChild(createMenuItem("Author email", "Copy to clipboard", [=]() {
glfwSetClipboardString(APP->window->win, plugin->authorEmail.c_str());
}));
}

// plugin folder
if (plugin->path != "") {
menu->addChild(createMenuItem("Open plugin folder", "", [=]() {


Loading…
Cancel
Save