From 7bb39b339b0ab5b9301798f3051e26765f9148d8 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 22 Jan 2022 09:15:26 -0500 Subject: [PATCH] Add "Support" item to Help menu. Rearrange Help menu. --- src/app/MenuBar.cpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/app/MenuBar.cpp b/src/app/MenuBar.cpp index 8f9ade8c..93e2e0a9 100644 --- a/src/app/MenuBar.cpp +++ b/src/app/MenuBar.cpp @@ -819,27 +819,33 @@ struct HelpButton : MenuButton { })); menu->addChild(createMenuItem("User manual", "F1", [=]() { - system::openBrowser("https://vcvrack.com/manual/"); + system::openBrowser("https://vcvrack.com/manual"); + })); + + menu->addChild(createMenuItem("Support", "", [=]() { + system::openBrowser("https://vcvrack.com/support"); })); menu->addChild(createMenuItem("VCVRack.com", "", [=]() { system::openBrowser("https://vcvrack.com/"); })); + menu->addChild(new ui::MenuSeparator); + + menu->addChild(createMenuLabel(APP_NAME + " " + APP_EDITION_NAME + " " + APP_VERSION)); + menu->addChild(createMenuItem("Open user folder", "", [=]() { system::openDirectory(asset::user("")); })); - if (library::isAppUpdateAvailable()) { - menu->addChild(new ui::MenuSeparator); + menu->addChild(createMenuItem("Changelog", "", [=]() { + system::openBrowser("https://github.com/VCVRack/Rack/blob/v2/CHANGELOG.md"); + })); + if (library::isAppUpdateAvailable()) { menu->addChild(createMenuItem("Update " + APP_NAME, APP_VERSION + " → " + library::appVersion, [=]() { system::openBrowser(library::appDownloadUrl); })); - - menu->addChild(createMenuItem("Review changelog", "", [=]() { - system::openBrowser(library::appChangelogUrl); - })); } else if (!settings::autoCheckUpdates && !settings::devMode) { menu->addChild(createMenuItem("Check for " + APP_NAME + " update", "", [=]() { @@ -849,10 +855,6 @@ struct HelpButton : MenuButton { t.detach(); }, false, true)); } - - menu->addChild(new ui::MenuSeparator); - - menu->addChild(createMenuLabel(APP_NAME + " " + APP_EDITION_NAME + " " + APP_VERSION)); } void step() override {