Add some IMPORTANT comments about the format of JSON files to be downloaded.

This commit is contained in:
Gerhard Hoffmann 2024-05-15 15:02:10 +02:00
parent 9d9865e3c7
commit 94a658ce8a

View File

@ -525,14 +525,18 @@ bool Update::updatePrinterTemplate(int templateIdx, QString jsFile) const {
}
bool Update::updateConfig(QString jsFile) {
// IMPORTANT: the JSON-file has a 'title'-line: the value MUST be 'DC2C_config'
return downloadJson(FileTypeJson::CONFIG, 0, jsFile);
}
bool Update::updateCashConf(QString jsFile) {
// IMPORTANT: the JSON-file has a 'title'-line: the value MUST be 'DC2C_cash '
// Note the twp spaces after DC2C_cash !!
return downloadJson(FileTypeJson::CASH, 0, jsFile);
}
bool Update::updateDeviceConf(QString jsFile) {
// IMPORTANT: the JSON-file has a 'title'-line: the value MUST be 'DC2C_device'
return downloadJson(FileTypeJson::DEVICE, 0, jsFile);
}