Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed Oct 23, 2023
1 parent c4761ed commit a4a417c
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ export async function performPr1868ShapeUpdateInit(
true,
);

if (
// Don't show it if they don't have any shapes enabled
!hasAnyShapesEnabled(hatStyleMap)
) {
return;
}

let shownMessage = false;

// If they have any individual adjustments, we should tell them to reset them
Expand Down Expand Up @@ -87,7 +80,12 @@ export async function performPr1868ShapeUpdateInit(
}

// If they have any global adjustments, they may want to tweak them
if (userSizeAdjustment !== 0 || userVerticalOffset !== 0) {
if (
(userSizeAdjustment !== 0 || userVerticalOffset !== 0) &&
// Don't bother if they have no shapes enabled, as the default shape
// is similar enough in size / offset to the old default shape
hasAnyShapesEnabled(hatStyleMap)
) {
const TAKE_ME_THERE = "Take me there";
const message = shownMessage
? "You may also want to tweak your global hat settings."
Expand Down

0 comments on commit a4a417c

Please sign in to comment.