1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 11:08:09 +01:00

Closes issue #488.

This commit is contained in:
Kris Maglione
2011-08-02 11:18:22 -04:00
parent 377ef1332a
commit 3adbaff83c
2 changed files with 3 additions and 2 deletions

View File

@@ -667,11 +667,12 @@ var Buffer = Module("buffer", {
| persist.PERSIST_FLAGS_REPLACE_EXISTING_FILES;
let downloadListener = new window.DownloadListener(window,
services.Transfer(uri, services.io.newFileURI(file), "",
services.Transfer(uri, File(file).URI, "",
null, null, null, persist));
persist.progressListener = update(Object.create(downloadListener), {
onStateChange: util.wrapCallback(function onStateChange(progress, request, flags, status) {
util.dump(status, [k for ([k, v] in iter(Ci.nsIWebProgressListener)) if (v & flags)].join("|"))
if (callback && (flags & Ci.nsIWebProgressListener.STATE_STOP) && status == 0)
dactyl.trapErrors(callback, self, uri, file, progress, request, flags, status);

View File

@@ -1602,7 +1602,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
M: ["Always show messages outside of the status line"]
},
setter: function (opts) {
if (loaded.commandline)
if (loaded.commandline || ~opts.indexOf("c"))
commandline.widgets.updateVisibility();
}
},