uncomment printer worker

This commit is contained in:
NyanLinHtut
2022-03-22 13:53:10 +06:30
parent 070dc47225
commit 91d3984315

View File

@@ -48,11 +48,11 @@ class Printer::PrinterWorker
copy = self.print_copies
#Print only when printer information is not null
# if !self.printer_destination.nil?
# (1..copy).each do
# page = Cups::PrintJob.new(file_path, printer_destination)
# page.print
# end
# end
if !self.printer_destination.nil?
(1..copy).each do
page = Cups::PrintJob.new(file_path, printer_destination)
page.print
end
end
end
end