From 8758fd53d10b5a1123c7316667e97962c3d0a5b9 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 23 Jan 2022 16:10:58 +0000 Subject: [PATCH] Hide favorite button in module browser since it does nothing Signed-off-by: falkTX --- src/CardinalUI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CardinalUI.cpp b/src/CardinalUI.cpp index b1a29f8..19d111c 100644 --- a/src/CardinalUI.cpp +++ b/src/CardinalUI.cpp @@ -297,7 +297,9 @@ public: // hide "Browse VCV Library" button rack::widget::Widget* const browser = context->scene->browser->children.back(); rack::widget::Widget* const headerLayout = browser->children.front(); + rack::widget::Widget* const favoriteButton = *std::next(headerLayout->children.begin(), 3); rack::widget::Widget* const libraryButton = headerLayout->children.back(); + favoriteButton->hide(); libraryButton->hide(); // Report to user if something is wrong with the installation