Console: Fix sidebar status when updating plugin (ticket #2137)

This commit is contained in:
zzz
2018-04-17 12:37:54 +00:00
parent 76999ccb6f
commit f0e0c01518
3 changed files with 20 additions and 1 deletions

View File

@ -133,6 +133,17 @@ class PluginUpdateRunner extends UpdateRunner {
_mgr.notifyTaskFailed(this, _errMsg, null);
}
/**
* Overridden to change the "Updating I2P" text in super
* @since 0.9.35
*/
@Override
public void bytesTransferred(long alreadyTransferred, int currentWrite, long bytesTransferred, long bytesRemaining, String url) {
long d = currentWrite + bytesTransferred;
String status = "<b>" + _t("Downloading plugin") + ": " + _appName + "</b>";
_mgr.notifyProgress(this, status, d, d + bytesRemaining);
}
@Override
public void transferComplete(long alreadyTransferred, long bytesTransferred, long bytesRemaining, String url, String outputFile, boolean notModified) {
if (!(_xpi2pURL.startsWith("file:") || _method == UpdateMethod.FILE))

View File

@ -1,7 +1,15 @@
2018-04-17 zzz
* Console: Fix sidebar status when updating plugin (ticket #2137)
2018-04-16 zzz
* Console: Add links to bandwidth graphs on /tunnels
* SusiMail: Move logging to router logs (ticket #2191)
2018-04-14 zzz
* Console: Add built-by to /logs (ticket #2204)
* CPUID: Fix TBM detection (ticket #2211)
* Debian updates (ticket #2027, PR #15)
* i2ptunnel: Build restructuring
* Jetty: Fix quote in header line tripping XSS filter (ticket #2215)
* SusiMail: Add folders, drafts, background sending (ticket #2087)

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 2;
public final static long BUILD = 3;
/** for example "-test" */
public final static String EXTRA = "";