only do update click when there are updates available

This commit is contained in:
Ben Fry
2015-09-30 09:44:28 -04:00
parent a06698d6f5
commit 880edcdc9d

View File

@@ -73,7 +73,7 @@ public class EditorFooter extends Box {
Color[] tabColor = new Color[2];
Color updateColor;
int updateLeft, updateRight;
int updateLeft;
Editor editor;
@@ -191,7 +191,7 @@ public class EditorFooter extends Box {
repaint();
}
}
if (x > updateLeft) {
if (updateCount > 0 && x > updateLeft) {
ContributionManager.openUpdates();
}
}