Skip to content

Commit

Permalink
...basically just making typescript happy
Browse files Browse the repository at this point in the history
  • Loading branch information
arttu76 committed Dec 3, 2023
1 parent abb21da commit 85add0f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,11 @@ export const Toolbar = () => {
}

const freeze = (freezePixels: boolean, freezeAttributes: boolean) => {
if (!activeLayer) {
alert("Select a layer first.")
return;
}

const freezeWhatText = (freezePixels && freezeAttributes)
? 'both pixels and attributes'
: freezePixels
Expand Down

0 comments on commit 85add0f

Please sign in to comment.