mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 17:22:26 +01:00
output status messages from :hardcopy and hide the progress dialog when ! is
used
This commit is contained in:
@@ -453,14 +453,18 @@ liberator.Buffer = function () //{{{
|
|||||||
"Print current document",
|
"Print current document",
|
||||||
function (args, special)
|
function (args, special)
|
||||||
{
|
{
|
||||||
// TODO: Hide the progress bar ("print.show_print_progress") when
|
var aps = liberator.options.getPref("print.always_print_silent");
|
||||||
// the special version is called?
|
var spp = liberator.options.getPref("print.show_print_progress");
|
||||||
var value = liberator.options.getPref("print.always_print_silent");
|
|
||||||
|
liberator.echo("Sending to printer...");
|
||||||
liberator.options.setPref("print.always_print_silent", special);
|
liberator.options.setPref("print.always_print_silent", special);
|
||||||
|
liberator.options.setPref("print.show_print_progress", !special);
|
||||||
|
|
||||||
getBrowser().contentWindow.print();
|
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]"],
|
liberator.commands.add(["pa[geinfo]"],
|
||||||
|
|||||||
Reference in New Issue
Block a user