From 6a17c41ffb56928d01cfb6f0ac7dc93dd00d42ad Mon Sep 17 00:00:00 2001 From: alcomposer Date: Wed, 4 Dec 2024 14:38:52 +1030 Subject: [PATCH] Set the store tile button position when there is no recent patches --- Source/Components/WelcomePanel.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Components/WelcomePanel.h b/Source/Components/WelcomePanel.h index 4a4fb91d3..c293091a5 100644 --- a/Source/Components/WelcomePanel.h +++ b/Source/Components/WelcomePanel.h @@ -677,6 +677,9 @@ class WelcomePanel : public Component auto const buttonY = getHeight() * 0.5f - 30; newPatchTile->setBounds(rowBounds.withX(startX).withWidth(buttonWidth).withY(buttonY)); openPatchTile->setBounds(rowBounds.withX(startX + buttonWidth + tileSpacing).withWidth(buttonWidth).withY(buttonY)); + + auto firstTileBounds = rowBounds.removeFromLeft(actualTileWidth * 1.5f); + storeTile->setBounds(firstTileBounds); } else { auto firstTileBounds = rowBounds.removeFromLeft(actualTileWidth * 1.5f); newPatchTile->setBounds(firstTileBounds);