Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Benjamin Kraatz
2022-02-26 18:22:46 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
David PHAM-VAN
2022-07-25 08:01:58 -0300
Commit
fddb877a03bae81a7c26843711aad598f9640176
fddb877a
1 parent
8b42b154
Added showsCopies option to print panel
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
printing/macos/Classes/PrintJob.swift
printing/macos/Classes/PrintJob.swift
View file @
fddb877
...
...
@@ -159,14 +159,14 @@ public class PrintJob: NSView, NSSharingServicePickerDelegate {
// The custom print view
printOperation
=
NSPrintOperation
(
view
:
self
,
printInfo
:
printInfo
)
printOperation
!.
jobTitle
=
name
printOperation
!.
printPanel
.
options
=
[
.
showsPreview
]
printOperation
!.
printPanel
.
options
=
[
.
showsPreview
,
.
showsCopies
]
if
printer
!=
nil
{
printOperation
!.
showsPrintPanel
=
false
printOperation
!.
showsProgressPanel
=
false
}
if
dynamic
{
printOperation
!.
printPanel
.
options
=
[
.
showsPreview
,
.
showsPaperSize
,
.
showsOrientation
]
printOperation
!.
printPanel
.
options
=
[
.
showsPreview
,
.
showsPaperSize
,
.
showsOrientation
,
.
showsCopies
]
printOperation
!.
runModal
(
for
:
_window
!
,
delegate
:
self
,
didRun
:
#selector(
printOperationDidRun(printOperation:success:contextInfo:)
)
,
contextInfo
:
nil
)
return
}
...
...
Please
register
or
login
to post a comment