forked from I2P_Developers/i2p.i2p
* Updates:
- Notify manager about all available update methods at once, so the priority system works and it doesn't only update via HTTP - Start router update download at startup if available - Only check plugins when core version increases, not decreases, so we don't update plugins when downgrading - Limit length of URL shown on summary bar
This commit is contained in:
@ -69,9 +69,13 @@ public class PluginStarter implements Runnable {
|
||||
|
||||
public void run() {
|
||||
if (_context.getBooleanPropertyDefaultTrue("plugins.autoUpdate") &&
|
||||
(!NewsHelper.isUpdateInProgress()) &&
|
||||
(!RouterVersion.VERSION.equals(_context.getProperty("router.previousVersion"))))
|
||||
updateAll(_context, true);
|
||||
!NewsHelper.isUpdateInProgress()) {
|
||||
String prev = _context.getProperty("router.previousVersion");
|
||||
if (prev != null &&
|
||||
(new VersionComparator()).compare(RouterVersion.VERSION, prev) > 0) {
|
||||
updateAll(_context, true);
|
||||
}
|
||||
}
|
||||
startPlugins(_context);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user