Skip to content

Commit

Permalink
Set the store tile button position when there is no recent patches
Browse files Browse the repository at this point in the history
  • Loading branch information
alcomposer committed Dec 4, 2024
1 parent b41b2f6 commit 6a17c41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Components/WelcomePanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6a17c41

Please sign in to comment.