Browse Source

Add "Support" item to Help menu. Rearrange Help menu.

tags/v2.1.0
Andrew Belt 2 years ago
parent
commit
7bb39b339b
1 changed files with 13 additions and 11 deletions
  1. +13
    -11
      src/app/MenuBar.cpp

+ 13
- 11
src/app/MenuBar.cpp View File

@@ -819,27 +819,33 @@ struct HelpButton : MenuButton {
})); }));


menu->addChild(createMenuItem("User manual", "F1", [=]() { 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", "", [=]() { menu->addChild(createMenuItem("VCVRack.com", "", [=]() {
system::openBrowser("https://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", "", [=]() { menu->addChild(createMenuItem("Open user folder", "", [=]() {
system::openDirectory(asset::user("")); 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, [=]() { menu->addChild(createMenuItem("Update " + APP_NAME, APP_VERSION + " → " + library::appVersion, [=]() {
system::openBrowser(library::appDownloadUrl); system::openBrowser(library::appDownloadUrl);
})); }));

menu->addChild(createMenuItem("Review changelog", "", [=]() {
system::openBrowser(library::appChangelogUrl);
}));
} }
else if (!settings::autoCheckUpdates && !settings::devMode) { else if (!settings::autoCheckUpdates && !settings::devMode) {
menu->addChild(createMenuItem("Check for " + APP_NAME + " update", "", [=]() { menu->addChild(createMenuItem("Check for " + APP_NAME + " update", "", [=]() {
@@ -849,10 +855,6 @@ struct HelpButton : MenuButton {
t.detach(); t.detach();
}, false, true)); }, false, true));
} }

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

menu->addChild(createMenuLabel(APP_NAME + " " + APP_EDITION_NAME + " " + APP_VERSION));
} }


void step() override { void step() override {


Loading…
Cancel
Save