Browse Source

Rename VCV Plugin Manager to VCV Library.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
97e892f865
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      src/app/MenuBar.cpp

+ 8
- 8
src/app/MenuBar.cpp View File

@@ -564,10 +564,10 @@ struct LogOutItem : ui::MenuItem {
} }
}; };


struct PluginsMenu : ui::Menu {
struct LibraryMenu : ui::Menu {
bool loggedIn = false; bool loggedIn = false;


PluginsMenu() {
LibraryMenu() {
refresh(); refresh();
} }


@@ -642,16 +642,16 @@ struct PluginsMenu : ui::Menu {
}; };




struct PluginsButton : MenuButton {
struct LibraryButton : MenuButton {
NotificationIcon *notification; NotificationIcon *notification;


PluginsButton() {
LibraryButton() {
notification = new NotificationIcon; notification = new NotificationIcon;
addChild(notification); addChild(notification);
} }


void onAction(const event::Action &e) override { void onAction(const event::Action &e) override {
ui::Menu *menu = createMenu<PluginsMenu>();
ui::Menu *menu = createMenu<LibraryMenu>();
menu->box.pos = getAbsoluteOffset(math::Vec(0, box.size.y)); menu->box.pos = getAbsoluteOffset(math::Vec(0, box.size.y));
menu->box.size.x = box.size.x; menu->box.size.x = box.size.x;
} }
@@ -770,9 +770,9 @@ MenuBar *createMenuBar() {
engineButton->text = "Engine"; engineButton->text = "Engine";
layout->addChild(engineButton); layout->addChild(engineButton);


PluginsButton *pluginsButton = new PluginsButton;
pluginsButton->text = "Plugins";
layout->addChild(pluginsButton);
LibraryButton *libraryButton = new LibraryButton;
libraryButton->text = "Library";
layout->addChild(libraryButton);


HelpButton *helpButton = new HelpButton; HelpButton *helpButton = new HelpButton;
helpButton->text = "Help"; helpButton->text = "Help";


Loading…
Cancel
Save