mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:57:58 +01:00
Closes issue #488.
This commit is contained in:
@@ -667,11 +667,12 @@ var Buffer = Module("buffer", {
|
|||||||
| persist.PERSIST_FLAGS_REPLACE_EXISTING_FILES;
|
| persist.PERSIST_FLAGS_REPLACE_EXISTING_FILES;
|
||||||
|
|
||||||
let downloadListener = new window.DownloadListener(window,
|
let downloadListener = new window.DownloadListener(window,
|
||||||
services.Transfer(uri, services.io.newFileURI(file), "",
|
services.Transfer(uri, File(file).URI, "",
|
||||||
null, null, null, persist));
|
null, null, null, persist));
|
||||||
|
|
||||||
persist.progressListener = update(Object.create(downloadListener), {
|
persist.progressListener = update(Object.create(downloadListener), {
|
||||||
onStateChange: util.wrapCallback(function onStateChange(progress, request, flags, status) {
|
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)
|
if (callback && (flags & Ci.nsIWebProgressListener.STATE_STOP) && status == 0)
|
||||||
dactyl.trapErrors(callback, self, uri, file, progress, request, flags, status);
|
dactyl.trapErrors(callback, self, uri, file, progress, request, flags, status);
|
||||||
|
|
||||||
|
|||||||
@@ -1602,7 +1602,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
M: ["Always show messages outside of the status line"]
|
M: ["Always show messages outside of the status line"]
|
||||||
},
|
},
|
||||||
setter: function (opts) {
|
setter: function (opts) {
|
||||||
if (loaded.commandline)
|
if (loaded.commandline || ~opts.indexOf("c"))
|
||||||
commandline.widgets.updateVisibility();
|
commandline.widgets.updateVisibility();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user