Compare commits
1 Commits
2.10.0
...
integration
| Author | SHA1 | Date | |
|---|---|---|---|
| bb15d54940 |
@@ -1155,17 +1155,17 @@ void ATBDeviceControllerPlugin::onPrinterPrintNextTemplate()
|
|||||||
if (this->currentTicket->templateList()->isEmpty()) {
|
if (this->currentTicket->templateList()->isEmpty()) {
|
||||||
// all templates are printed
|
// all templates are printed
|
||||||
this->printResultCheckCounter = 0;
|
this->printResultCheckCounter = 0;
|
||||||
QTimer::singleShot(2000, this, SLOT(onPrinterWaitForPrintingTicket()));
|
QTimer::singleShot(200, this, SLOT(onPrinterWaitForPrintingTicket()));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
if (this->currentTicket->hasTemplateDynData()) {
|
if (this->currentTicket->hasTemplateDynData()) {
|
||||||
// set new dyn data:
|
// set new dyn data:
|
||||||
QTimer::singleShot(2000, this, SLOT(onPrinterPrepareDynTemplateData()));
|
QTimer::singleShot(300, this, SLOT(onPrinterPrepareDynTemplateData()));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// print next template
|
// print next template
|
||||||
QTimer::singleShot(2000, this, SLOT(onPrinterPrintNextTemplate()));
|
QTimer::singleShot(300, this, SLOT(onPrinterPrintNextTemplate()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1290,7 +1290,7 @@ void ATBDeviceControllerPlugin::prepareDynTemplateData()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QTimer::singleShot(1000, this, SLOT(onPrinterDataPreparedForTemplates()));
|
QTimer::singleShot(300, this, SLOT(onPrinterDataPreparedForTemplates()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user