Committed by
David PHAM-VAN
Added showsCopies option to print panel
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -159,14 +159,14 @@ public class PrintJob: NSView, NSSharingServicePickerDelegate { | @@ -159,14 +159,14 @@ public class PrintJob: NSView, NSSharingServicePickerDelegate { | ||
159 | // The custom print view | 159 | // The custom print view |
160 | printOperation = NSPrintOperation(view: self, printInfo: printInfo) | 160 | printOperation = NSPrintOperation(view: self, printInfo: printInfo) |
161 | printOperation!.jobTitle = name | 161 | printOperation!.jobTitle = name |
162 | - printOperation!.printPanel.options = [.showsPreview] | 162 | + printOperation!.printPanel.options = [.showsPreview, .showsCopies] |
163 | if printer != nil { | 163 | if printer != nil { |
164 | printOperation!.showsPrintPanel = false | 164 | printOperation!.showsPrintPanel = false |
165 | printOperation!.showsProgressPanel = false | 165 | printOperation!.showsProgressPanel = false |
166 | } | 166 | } |
167 | 167 | ||
168 | if dynamic { | 168 | if dynamic { |
169 | - printOperation!.printPanel.options = [.showsPreview, .showsPaperSize, .showsOrientation] | 169 | + printOperation!.printPanel.options = [.showsPreview, .showsPaperSize, .showsOrientation, .showsCopies] |
170 | printOperation!.runModal(for: _window!, delegate: self, didRun: #selector(printOperationDidRun(printOperation:success:contextInfo:)), contextInfo: nil) | 170 | printOperation!.runModal(for: _window!, delegate: self, didRun: #selector(printOperationDidRun(printOperation:success:contextInfo:)), contextInfo: nil) |
171 | return | 171 | return |
172 | } | 172 | } |
-
Please register or login to post a comment