Browse Source

Reorder module Info menu items.

tags/v2.0.0
Andrew Belt 4 years ago
parent
commit
283db2ce85
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      src/app/ModuleWidget.cpp

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

@@ -62,10 +62,17 @@ struct ModuleInfoItem : ui::MenuItem {
menu->addChild(tagLabel);
}

if (model->plugin->pluginUrl != "") {
ModuleUrlItem* websiteItem = new ModuleUrlItem;
websiteItem->text = "Plugin website";
websiteItem->url = model->plugin->pluginUrl;
menu->addChild(websiteItem);
}

if (model->plugin->author != "") {
if (model->plugin->authorUrl != "") {
ModuleUrlItem* authorItem = new ModuleUrlItem;
authorItem->text = model->plugin->author;
authorItem->text = model->plugin->author + " website";
authorItem->url = model->plugin->authorUrl;
menu->addChild(authorItem);
}
@@ -90,13 +97,6 @@ struct ModuleInfoItem : ui::MenuItem {
menu->addChild(manualItem);
}

if (model->plugin->pluginUrl != "") {
ModuleUrlItem* websiteItem = new ModuleUrlItem;
websiteItem->text = "Plugin website";
websiteItem->url = model->plugin->pluginUrl;
menu->addChild(websiteItem);
}

if (model->plugin->sourceUrl != "") {
ModuleUrlItem* sourceItem = new ModuleUrlItem;
sourceItem->text = "Source code";


Loading…
Cancel
Save