Browse Source

Move "Update Rack" menu bar item to top of menu.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
01dbc1dde3
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      src/app/MenuBar.cpp

+ 8
- 8
src/app/MenuBar.cpp View File

@@ -709,6 +709,14 @@ struct HelpButton : MenuButton {
menu->box.pos = getAbsoluteOffset(math::Vec(0, box.size.y));
menu->box.size.x = box.size.x;

if (hasUpdate()) {
UrlItem *updateItem = new UrlItem;
updateItem->text = "Update " + APP_NAME;
updateItem->rightText = APP_VERSION + " → " + APP_VERSION_UPDATE;
updateItem->url = "https://vcvrack.com/";
menu->addChild(updateItem);
}

UrlItem *manualItem = new UrlItem;
manualItem->text = "Manual";
manualItem->rightText = "F1";
@@ -720,14 +728,6 @@ struct HelpButton : MenuButton {
websiteItem->url = "https://vcvrack.com/";
menu->addChild(websiteItem);

if (hasUpdate()) {
UrlItem *updateItem = new UrlItem;
updateItem->text = "Update " + APP_NAME;
updateItem->rightText = APP_VERSION + " → " + APP_VERSION_UPDATE;
updateItem->url = "https://vcvrack.com/";
menu->addChild(updateItem);
}

UserFolderItem *folderItem = new UserFolderItem;
folderItem->text = "Open user folder";
menu->addChild(folderItem);


Loading…
Cancel
Save