mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 07:07:59 +01:00
Closes issue #488.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user