json里没有设备型号就不去获取,避免拖慢运行速度

This commit is contained in:
yangjiaxuan 2023-11-02 15:12:00 +08:00
parent f98e28b40c
commit bea0d290d6
1 changed files with 10 additions and 7 deletions

View File

@ -444,20 +444,23 @@ void Dialog_InputSerialNum::on_pbtn_checkConfig_clicked()
int sleepTime = getSleepTime();
int vid = getDevVid();
int pid = getDevPid();
QString deviceModel = getDeviceModel();
QString item;
bool right = true;
LPWRITECFG lp = new WRITECFG;
if (deviceModel_to != deviceModel)
if (!deviceModel_to.isEmpty())
{
item.append(tr("Device model"));
item.append(" ");
right = false;
QString deviceModel = getDeviceModel();
if (deviceModel_to != deviceModel)
{
item.append(tr("Device model"));
item.append(" ");
right = false;
QString info = tr("Inconsistent configuration %1detected, please reconfigure, and check again").arg(item);
addInteractInfo(info, false);
QString info = tr("Inconsistent configuration %1detected, please reconfigure, and check again").arg(item);
addInteractInfo(info, false);
}
}
if (speedMode_to != speedMode)