investigating why update count is wrong; not important

This commit is contained in:
Ben Fry
2022-01-20 10:41:22 -05:00
parent bd0bbb57af
commit 056fedb5a4
2 changed files with 20 additions and 13 deletions
@@ -395,15 +395,15 @@ public class ContributionListing {
protected boolean hasUpdates(Contribution contribution) {
if (contribution.isInstalled()) {
Contribution advertised = getAvailableContribution(contribution);
if (advertised == null) {
return false;
}
return advertised.getVersion() > contribution.getVersion()
&& advertised.isCompatible(Base.getRevision());
if (!contribution.isInstalled()) {
return false;
}
return false;
Contribution advertised = getAvailableContribution(contribution);
if (advertised == null) {
return false;
}
return (advertised.getVersion() > contribution.getVersion() &&
advertised.isCompatible(Base.getRevision()));
}
@@ -468,10 +468,10 @@ public class ContributionListing {
/**
* TODO This needs to be called when the listing loads, and also whenever
* the contribs list has been updated (for whatever reason). In addition,
* the caller (presumably Base) should update all Editor windows with the
* correct information on the number of items available.
* TODO This needs to be called when the listing loads, and also
* the contribs list has been updated (for whatever reason).
* In addition, the caller (presumably Base) should update all
* Editor windows with the correct number of items available.
* @return The number of contributions that have available updates.
*/
public int countUpdates(Base base) {
+8 -1
View File
@@ -17,6 +17,10 @@ X bump ant from 1.10.10 to 1.10.12
X bump JNA from 5.8.0 to 5.10.0
X remove "Illegal reflective access" warning on Linux
X https://github.com/processing/processing4/issues/207
X write release notes about not moving to RSyntaxArea
X https://github.com/processing/processing4/issues/355
X https://github.com/processing/processing/issues/3199
X https://github.com/processing/processing4/blob/master/app/src/processing/app/syntax/README.md
windows scaling
X Fix "Could not delete disable_hidpi" message on macOS/Linux after closing prefs
@@ -48,6 +52,9 @@ X and no links open when clicked
X now changing color for link and actually opening the links
X set the font on the contrib install progress bar
X DetailPanel seems totally vestigial?
X updates count is off... maybe when compatible != available count?
X nope, just something weird with the qr code library
X probably not available anymore, not gonna bother digging further
_ after opening Editor window, Processing freezes until contribs are loaded
_ when opening manager, animation runs briefly then freezes
_ DetailPanel setContribution() being called 4x for each contrib on startup
@@ -59,7 +66,7 @@ _ but what else might that change be breaking?
_ StatusPanel seems to be recreated entirely
_ StatusPanel being reset twice on each click
_ is checking for previous, but apparently that's not working
_ updates count is off... maybe when compatible != available count?
_ Base.setUpdatesAvailable() is called from half a dozen places!?
before beta 4 release