Skip to content

Commit 08e352a

Browse files
committed
Do not show the camera tooltip if the window is not focused.
Fixes #1597
1 parent 229aade commit 08e352a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

chunky/src/java/se/llbit/chunky/ui/RenderCanvasFx.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,10 @@ public void setRenderListener(RenderStatusListener renderListener) {
440440

441441
@Override public void sceneStatus(String status) {
442442
Platform.runLater(() -> {
443+
if (!getScene().getWindow().isFocused()) {
444+
return;
445+
}
446+
443447
Point2D offset = localToScene(0, 0);
444448
tooltip.setText(status);
445449
tooltip.show(this,

0 commit comments

Comments
 (0)