Browse Source

menubar: dont show "open user dir" in wasm

Signed-off-by: falkTX <falktx@falktx.com>
tags/23.07
falkTX 1 year ago
parent
commit
ea4c7dc24d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/override/MenuBar.cpp

+ 2
- 1
src/override/MenuBar.cpp View File

@@ -119,7 +119,6 @@ struct FileButton : MenuButton {
APP->patch->path = asset::user("patches"); APP->patch->path = asset::user("patches");
system::createDirectories(APP->patch->path); system::createDirectories(APP->patch->path);


APP->patch->path += DISTRHO_OS_SEP_STR;
APP->patch->path += filename; APP->patch->path += filename;
if (rack::system::getExtension(filename) != ".vcv") if (rack::system::getExtension(filename) != ".vcv")
APP->patch->path += ".vcv"; APP->patch->path += ".vcv";
@@ -803,11 +802,13 @@ struct HelpButton : MenuButton {


menu->addChild(new ui::MenuSeparator); menu->addChild(new ui::MenuSeparator);


#ifndef DISTRHO_OS_WASM
menu->addChild(createMenuItem("Open user folder", "", [=]() { menu->addChild(createMenuItem("Open user folder", "", [=]() {
system::openDirectory(asset::user("")); system::openDirectory(asset::user(""));
})); }));


menu->addChild(new ui::MenuSeparator); menu->addChild(new ui::MenuSeparator);
#endif


menu->addChild(createMenuLabel("Rack " + APP_VERSION + " Compatible")); menu->addChild(createMenuLabel("Rack " + APP_VERSION + " Compatible"));
} }


Loading…
Cancel
Save