From 7ff866525e9f0884799efbed25d9a577c92b9b5c Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 6 Oct 2023 10:43:55 +0200 Subject: [PATCH] Fix: allow for json-files EC2C_conf/cash/device.json as well. --- worker.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/worker.cpp b/worker.cpp index 03e7a9f..a12073a 100644 --- a/worker.cpp +++ b/worker.cpp @@ -833,7 +833,10 @@ bool Worker::updateFiles(quint8 percent) { } } } else - if (fName.contains("print", Qt::CaseInsensitive)) { + if (fName.contains("DC2C_print", Qt::CaseInsensitive) || + fName.contains("DC2C_device", Qt::CaseInsensitive) || + fName.contains("DC2C_conf", Qt::CaseInsensitive) || + fName.contains("DC2C_cash", Qt::CaseInsensitive)) { filesToDownload << fName; // download printer-config-files } else { static const QRegularExpression version("^.*dc2c[.][0-9]{1,2}[.][0-9]{1,2}[.]bin.*$");