From 104572f2aafed16813e7b4b7e6f13343ed2a4412 Mon Sep 17 00:00:00 2001 From: Davit Gogiberidze <36148073+Davit-G@users.noreply.github.com> Date: Mon, 29 Apr 2024 00:11:41 +1000 Subject: [PATCH] Fix link buttons not appearing in collapsed mode (#9) --- README.md | 2 +- Source/PluginEditor.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 07aef04..8714a8d 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ The following changes were made in this repo: Bugs I found (or introduced hehe): -- The Link buttons under the input/output knobs disappear when the reels are hidden. +- [FIXED] ~~The Link buttons under the input/output knobs disappear when the reels are hidden.~~ - Sometimes there is an extremely loud glitch. Not sure yet what causes this, maybe some uninitialized memory. Hard to reproduce. - The hacky way I've implemented the Link Input/Output mode may be problematic. Sometimes this gives an assertion on `beginGesture` being called twice. Not a massive problem but not great either. - When restoring state, the Shame knob's cross is in the right position but the colored track isn't shown. diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index ee260c8..09e8358 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -207,6 +207,10 @@ void KissOfShameAudioProcessorEditor::setReelMode(bool showReels) vuMeterR.setTopLeftPosition(vuMeterR.getX(), vuMeterR.getY() + adjustment); shameKnobImage.setTopLeftPosition(shameKnobImage.getX(), shameKnobImage.getY() + adjustment); + // Link Buttons + linkIOButtonL.setTopLeftPosition(linkIOButtonL.getX(), linkIOButtonL.getY() + adjustment); + linkIOButtonR.setTopLeftPosition(linkIOButtonR.getX(), linkIOButtonR.getY() + adjustment); + if (showReels) { faceImage.setAnimationImage(BinaryData::FaceWithReels_png, BinaryData::FaceWithReels_pngSize); faceImage.setDimensions(0, 0, 960, 703);