hide "Browse VCV Library" button

This commit is contained in:
falkTX 2021-11-12 22:13:45 +00:00
parent 0a38bf0e46
commit aa00eef4bc

View file

@ -117,6 +117,12 @@ public:
context->scene->menuBar = rack::app::createMenuBar(this, getApp().isStandalone()); context->scene->menuBar = rack::app::createMenuBar(this, getApp().isStandalone());
context->scene->addChildBelow(context->scene->menuBar, context->scene->rackScroll); context->scene->addChildBelow(context->scene->menuBar, context->scene->rackScroll);
// hide "Browse VCV Library" button
rack::widget::Widget* const browser = context->scene->browser->children.back();
rack::widget::Widget* const headerLayout = browser->children.front();
rack::widget::Widget* const libraryButton = headerLayout->children.back();
libraryButton->hide();
context->window->step(); context->window->step();
rack::contextSet(nullptr); rack::contextSet(nullptr);