Browse Source

Add module description to ModuleBrowser tooltip.

tags/v1.0.0
Andrew Belt 3 years ago
parent
commit
59e46924b3
3 changed files with 6 additions and 2 deletions
  1. +1
    -0
      .gitignore
  2. +1
    -1
      dep/oui-blendish
  3. +4
    -1
      src/app/ModuleBrowser.cpp

+ 1
- 0
.gitignore View File

@@ -11,3 +11,4 @@
.DS_Store
/autosave.vcv
/settings.json
/screenshots

+ 1
- 1
dep/oui-blendish

@@ -1 +1 @@
Subproject commit b7066201022a757cbcbd986d8c91d565e4daef90
Subproject commit 79ec59e6bc7201017fc13a20c6e33380adca1660

+ 4
- 1
src/app/ModuleBrowser.cpp View File

@@ -215,7 +215,10 @@ struct ModelBox : widget::OpaqueWidget {

void onEnter(const event::Enter &e) override {
ui::Tooltip *tooltip = new ui::Tooltip;
tooltip->text = model->plugin->name + " " + model->name;
tooltip->text = model->plugin->name;
tooltip->text += " " + model->name;
if (model->description != "")
tooltip->text += "\n" + model->description;
setTooltip(tooltip);
}



Loading…
Cancel
Save