override Scene.cpp; Move common menu/scene to new file; Cleanup
Closes #50 Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
18a88ded9a
commit
5a652907c7
13 changed files with 515 additions and 95 deletions
|
|
@ -179,7 +179,7 @@ GLFWAPI const char* glfwGetKeyName(const int key, int)
|
|||
|
||||
namespace rack {
|
||||
namespace app {
|
||||
widget::Widget* createMenuBar(CardinalBaseUI* const ui, bool isStandalone);
|
||||
widget::Widget* createMenuBar(bool isStandalone);
|
||||
}
|
||||
namespace window {
|
||||
void WindowSetPluginUI(Window* window, DISTRHO_NAMESPACE::UI* ui);
|
||||
|
|
@ -283,7 +283,7 @@ public:
|
|||
if (context->scene->menuBar != nullptr)
|
||||
context->scene->removeChild(context->scene->menuBar);
|
||||
|
||||
context->scene->menuBar = rack::app::createMenuBar(this, getApp().isStandalone());
|
||||
context->scene->menuBar = rack::app::createMenuBar(getApp().isStandalone());
|
||||
context->scene->addChildBelow(context->scene->menuBar, context->scene->rackScroll);
|
||||
|
||||
// hide "Browse VCV Library" button
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue