From 59e46924b364294ec75c2b5a7682ab8355ed93c4 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 19 May 2019 10:59:59 -0400 Subject: [PATCH] Add module description to ModuleBrowser tooltip. --- .gitignore | 1 + dep/oui-blendish | 2 +- src/app/ModuleBrowser.cpp | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c6f63346..0ca91393 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ .DS_Store /autosave.vcv /settings.json +/screenshots diff --git a/dep/oui-blendish b/dep/oui-blendish index b7066201..79ec59e6 160000 --- a/dep/oui-blendish +++ b/dep/oui-blendish @@ -1 +1 @@ -Subproject commit b7066201022a757cbcbd986d8c91d565e4daef90 +Subproject commit 79ec59e6bc7201017fc13a20c6e33380adca1660 diff --git a/src/app/ModuleBrowser.cpp b/src/app/ModuleBrowser.cpp index 3eec8ed1..bb1bfaaa 100644 --- a/src/app/ModuleBrowser.cpp +++ b/src/app/ModuleBrowser.cpp @@ -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); }