adding fix from #4843 manually

This commit is contained in:
Ben Fry
2017-01-29 10:36:25 -05:00
parent 72730ba8d6
commit dffceffd8f
3 changed files with 32 additions and 0 deletions

View File

@@ -367,6 +367,27 @@ abstract public class Contribution {
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o instanceof Contribution) {
Contribution that = (Contribution) o;
return name.toLowerCase().equals(that.name.toLowerCase());
}
return false;
}
@Override
public int hashCode() {
return name.toLowerCase().hashCode();
}
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
public interface Filter {
boolean matches(Contribution contrib);
}

View File

@@ -51,6 +51,10 @@ X https://github.com/processing/processing/pull/4797
X Fix typo in GLSL preprocessor
X https://github.com/processing/processing/issues/4810
X https://github.com/processing/processing/pull/4816
X Keep Windows timer resolution high for OpenGL sketches
X prevents frame rate in OpenGL hovering around 30 instead of 60
X https://github.com/processing/processing/pull/4847
X https://github.com/processing/processing/issues/4846
_ no prompt shows with selectInput() on 10.11 and 10.12

View File

@@ -25,6 +25,7 @@ _ https://github.com/processing/processing/issues/3933
_ this may be fixed (removed invokeLater() on startup), unconfirmed
_ "error during export" message, but no error message contents come through
_ e.g. https://github.com/processing/processing/issues/4792
_ 'run sketches on display' message shows up on clean install
_ Mode, requiring update, appears in Updates tab but not in Modes tab
_ https://github.com/processing/processing/issues/4822
@@ -75,6 +76,12 @@ X https://github.com/processing/processing/issues/3965
X https://github.com/processing/processing/pull/4762
X Report missing brace in correct tab, suppress other errors until fixed
X https://github.com/processing/processing/pull/4777
X Improvements to sketch launching and stopping
X https://github.com/processing/processing/pull/4848
X several Contribution Manager fixes
X https://github.com/processing/processing/pull/4844
X Add missing equals() and hashCode() to Contribution
X
_ did we lose settings.path because it was too buggy?