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

output status messages from :hardcopy and hide the progress dialog when ! is

used
This commit is contained in:
Doug Kearns
2008-09-05 06:37:01 +00:00
parent 356b2e7526
commit 67111530df

View File

@@ -453,14 +453,18 @@ liberator.Buffer = function () //{{{
"Print current document",
function (args, special)
{
// TODO: Hide the progress bar ("print.show_print_progress") when
// the special version is called?
var value = liberator.options.getPref("print.always_print_silent");
var aps = liberator.options.getPref("print.always_print_silent");
var spp = liberator.options.getPref("print.show_print_progress");
liberator.echo("Sending to printer...");
liberator.options.setPref("print.always_print_silent", special);
liberator.options.setPref("print.show_print_progress", !special);
getBrowser().contentWindow.print();
liberator.options.setPref("print.always_print_silent", value);
liberator.options.setPref("print.always_print_silent", aps);
liberator.options.setPref("print.show_print_progress", spp);
liberator.echo("Print job sent.");
});
liberator.commands.add(["pa[geinfo]"],