Skip to content

Commit 0852e0e

Browse files
committed
Add volatile modifier to ColorSelector.selector
1 parent 0da8a76 commit 0852e0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/tools/ColorSelector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class ColorSelector implements Tool {
4343
* Only create one instance, otherwise we'll have dozens of animation
4444
* threads going if you open/close a lot of editor windows.
4545
*/
46-
static ColorChooser selector;
46+
private static volatile ColorChooser selector;
4747

4848
private Editor editor;
4949

0 commit comments

Comments
 (0)