mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 22:22:31 +02:00
Fix some Print to File issues.
This commit is contained in:
1 parent
56cb59cdc7
commit
5db5e74ad7
2 files changed
+17
-8
No files matched your search
@@ -1306,10 +1306,19 @@ var Buffer = Module("buffer", {
|
||||
dactyl.assert(!arg || arg[0] == ">" && !util.OS.isWindows,
|
||||
_("error.trailingCharacters"));
|
||||
|
||||
const PRINTER = "PostScript/default";
|
||||
const BRANCH = "print.printer_" + PRINTER + ".";
|
||||
|
||||
prefs.withContext(function () {
|
||||
if (arg) {
|
||||
prefs.set("print.print_to_file", "true");
|
||||
prefs.set("print.print_to_filename", io.File(arg.substr(1)).path);
|
||||
prefs.set("print.print_printer", PRINTER);
|
||||
|
||||
prefs.set( "print.print_to_file", true);
|
||||
prefs.set(BRANCH + "print_to_file", true);
|
||||
|
||||
prefs.set( "print.print_to_filename", io.File(arg.substr(1)).path);
|
||||
prefs.set(BRANCH + "print_to_filename", io.File(arg.substr(1)).path);
|
||||
|
||||
dactyl.echomsg(_("print.toFile", arg.substr(1)));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user