Skip to content

Commit

Permalink
Fixed "doubleclicking" on Colorpicker
Browse files Browse the repository at this point in the history
Bug: TodePond#315 / TodePond#345 / TodePond#309
Didn't read all the code so hope i got it right.

When you close a colorchannel it saves the atoms to reuse the gradiets. When opening it again it checks if the old atoms are there and it copies the gradient. But it only checks if the atom is there so when you close the channel before it has drawn all gradients, the gradient is undefined but isGradient is true.

I made it that it also copies the isGradient value from the old atom instead of just setting it true.
  • Loading branch information
Paalui authored Sep 11, 2024
1 parent 99e0611 commit 1fce620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion the-one-true-todey-file-of-cellpond.js
Original file line number Diff line number Diff line change
Expand Up @@ -6607,7 +6607,7 @@ registerRule(
const option = createChild(atom, {...COLOURTODE_PICKER_CHANNEL_OPTION, pityTop, pityBottom})

if (oldOptions !== undefined) {
option.isGradient = true
option.isGradient = oldOptions[i].isGradient
option.gradient = oldOptions[i].gradient
}

Expand Down

0 comments on commit 1fce620

Please sign in to comment.