Skip to content

Commit

Permalink
fix: don't queue unnecessarily until paintable
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhulbert committed Aug 25, 2023
1 parent a6f50a7 commit b177fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/bdv/fx/viewer/ViewerPanelFX.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public ViewerPanelFX(
transformListeners.add(tf -> Paintera.whenPaintable(getDisplay()::drawOverlays));

this.state = new ViewerState(numTimepoints, this);
state.addListener(obs -> Paintera.whenPaintable(this::requestRepaint));
state.addListener(obs -> Paintera.ifPaintable(this::requestRepaint));

Paintera.whenPaintable(() -> getDisplay().drawOverlays());

Expand Down

0 comments on commit b177fc3

Please sign in to comment.