shorten time when using TicketType

This commit is contained in:
2026-10-05 14:51:29 +02:00
parent 7a9f523b59
commit bb15d54940
+4 -4
View File
@@ -1155,17 +1155,17 @@ void ATBDeviceControllerPlugin::onPrinterPrintNextTemplate()
if (this->currentTicket->templateList()->isEmpty()) {
// all templates are printed
this->printResultCheckCounter = 0;
QTimer::singleShot(2000, this, SLOT(onPrinterWaitForPrintingTicket()));
QTimer::singleShot(200, this, SLOT(onPrinterWaitForPrintingTicket()));
}
else {
if (this->currentTicket->hasTemplateDynData()) {
// set new dyn data:
QTimer::singleShot(2000, this, SLOT(onPrinterPrepareDynTemplateData()));
QTimer::singleShot(300, this, SLOT(onPrinterPrepareDynTemplateData()));
}
else {
// print next template
QTimer::singleShot(2000, this, SLOT(onPrinterPrintNextTemplate()));
QTimer::singleShot(300, this, SLOT(onPrinterPrintNextTemplate()));
}
}
}
@@ -1290,7 +1290,7 @@ void ATBDeviceControllerPlugin::prepareDynTemplateData()
return;
}
QTimer::singleShot(1000, this, SLOT(onPrinterDataPreparedForTemplates()));
QTimer::singleShot(300, this, SLOT(onPrinterDataPreparedForTemplates()));
}