Showing
2 changed files
with
2 additions
and
2 deletions
@@ -8,6 +8,7 @@ | @@ -8,6 +8,7 @@ | ||
8 | - Fix wrong format in directPrintPdf [<AlhasanAlQaisi>] | 8 | - Fix wrong format in directPrintPdf [<AlhasanAlQaisi>] |
9 | - Add compatibility with Android Gradle Plugin 8.0 [asaarnak] | 9 | - Add compatibility with Android Gradle Plugin 8.0 [asaarnak] |
10 | - Add compatibility with Flutter 3.10 | 10 | - Add compatibility with Flutter 3.10 |
11 | +- Re-init UIPrinter cause issues with delegate [Hasan] | ||
11 | 12 | ||
12 | ## 5.10.3 | 13 | ## 5.10.3 |
13 | 14 |
@@ -144,7 +144,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | @@ -144,7 +144,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | ||
144 | printing.onCompleted(printJob: self, completed: completed, error: error?.localizedDescription as NSString?) | 144 | printing.onCompleted(printJob: self, completed: completed, error: error?.localizedDescription as NSString?) |
145 | } | 145 | } |
146 | 146 | ||
147 | - public func printInteractionController(_ printController: UIPrintInteractionController, choosePaper paperList: [UIPrintPaper]) -> UIPrintPaper { | 147 | + public func printInteractionController(_: UIPrintInteractionController, choosePaper paperList: [UIPrintPaper]) -> UIPrintPaper { |
148 | if currentSize == nil { | 148 | if currentSize == nil { |
149 | return paperList[0] | 149 | return paperList[0] |
150 | } | 150 | } |
@@ -199,7 +199,6 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | @@ -199,7 +199,6 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | ||
199 | selectedPrinters[printerURLString] = UIPrinter(url: printerURL!) | 199 | selectedPrinters[printerURLString] = UIPrinter(url: printerURL!) |
200 | } | 200 | } |
201 | 201 | ||
202 | - | ||
203 | selectedPrinters[printerURLString]!.contactPrinter { available in | 202 | selectedPrinters[printerURLString]!.contactPrinter { available in |
204 | if !available { | 203 | if !available { |
205 | self.printing.onCompleted(printJob: self, completed: false, error: "Printer not available") | 204 | self.printing.onCompleted(printJob: self, completed: false, error: "Printer not available") |
-
Please register or login to post a comment