From bb15d54940bb36caa04fb8911ba2f071cff7450c Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Mon, 5 Oct 2026 14:51:29 +0200 Subject: [PATCH] shorten time when using TicketType --- src/ATBAPP/ATBDeviceControllerPlugin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index 3d5175e..32229fd 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -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())); }