Skip to content

Commit 72d92a2

Browse files
committed
only do update click when there are updates available
1 parent f00fdcb commit 72d92a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/processing/app/ui/EditorFooter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class EditorFooter extends Box {
7373
Color[] tabColor = new Color[2];
7474

7575
Color updateColor;
76-
int updateLeft, updateRight;
76+
int updateLeft;
7777

7878
Editor editor;
7979

@@ -191,7 +191,7 @@ public void mousePressed(MouseEvent e) {
191191
repaint();
192192
}
193193
}
194-
if (x > updateLeft) {
194+
if (updateCount > 0 && x > updateLeft) {
195195
ContributionManager.openUpdates();
196196
}
197197
}

0 commit comments

Comments
 (0)