Browse Source

Reorder description and tags Module Browser module tooltip.

tags/v2.0.0
Andrew Belt 4 years ago
parent
commit
037fd137e7
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      src/app/ModuleBrowser.cpp

+ 6
- 6
src/app/ModuleBrowser.cpp View File

@@ -239,17 +239,17 @@ struct ModelBox : widget::OpaqueWidget {
std::string text;
text = model->plugin->brand;
text += " " + model->name;
// Description
if (model->description != "") {
text += "\n" + model->description;
}
// Tags
text += "\nTags: ";
text += "\n\nTags: ";
for (size_t i = 0; i < model->tags.size(); i++) {
if (i > 0)
text += ", ";
int tagId = model->tags[i];
text += tag::tagAliases[tagId][0];
}
// Description
if (model->description != "") {
text += "\n" + model->description;
text += tag::getTag(tagId);
}
ui::Tooltip* tooltip = new ui::Tooltip;
tooltip->text = text;


Loading…
Cancel
Save