From ea4c7dc24dfb8262d59b79b3525dcd4c4596ef9f Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 3 Jul 2023 09:29:05 +0200 Subject: [PATCH] menubar: dont show "open user dir" in wasm Signed-off-by: falkTX --- src/override/MenuBar.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/override/MenuBar.cpp b/src/override/MenuBar.cpp index cd7da3c..9ec3acb 100644 --- a/src/override/MenuBar.cpp +++ b/src/override/MenuBar.cpp @@ -119,7 +119,6 @@ struct FileButton : MenuButton { APP->patch->path = asset::user("patches"); system::createDirectories(APP->patch->path); - APP->patch->path += DISTRHO_OS_SEP_STR; APP->patch->path += filename; if (rack::system::getExtension(filename) != ".vcv") APP->patch->path += ".vcv"; @@ -803,11 +802,13 @@ struct HelpButton : MenuButton { menu->addChild(new ui::MenuSeparator); +#ifndef DISTRHO_OS_WASM menu->addChild(createMenuItem("Open user folder", "", [=]() { system::openDirectory(asset::user("")); })); menu->addChild(new ui::MenuSeparator); +#endif menu->addChild(createMenuLabel("Rack " + APP_VERSION + " Compatible")); }