Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Srashti Mittal
purr-data
Commits
c3462eac
Commit
c3462eac
authored
Oct 24, 2020
by
Albert Gräf
Browse files
Comment change.
parent
df9ddcc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
c3462eac
...
...
@@ -1162,8 +1162,11 @@ function menu_saveas(name) {
exports
.
menu_saveas
=
menu_saveas
;
function
gui_canvas_print
(
name
,
initfile
,
initdir
)
{
// AG: We simply ignore initfile and initdir, as the print dialog will
// present its own file picker anyway if PDF output is chosen.
// AG: The print dialog presents its own file picker anyway if PDF
// output is chosen, and just ignores the settings for pdf_path. So
// initfile and initdir are only used here to provide a useful default
// for the header and footer information -- otherwise the print() method
// uses some random internal document URL which isn't helpful.
pdsend
(
"
pd gui-busy 1
"
);
patchwin
[
name
].
print
({
autoprint
:
false
,
headerString
:
initfile
,
footerString
:
path
.
join
(
initdir
,
initfile
)
});
pdsend
(
"
pd gui-busy 0
"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment