This commit is contained in:
yangjiaxuan 2022-11-29 16:57:39 +08:00
parent 108d33a566
commit f02c39ca54
1 changed files with 16 additions and 5 deletions

View File

@ -31,11 +31,22 @@ Dialog_upgrade::Dialog_upgrade(class VersionDll *versionDll, HGVersionInfo *vers
else
{
ui->pbtn_upgrade->setVisible(true);
ui->label_detectResult->setText(tr("Discover the new version : ") +
m_versionInfo[0].version +
tr(" ,the current version is : ") + currVersion + "\n" + "\n" +
tr("upgrade contents: \n") +
m_versionInfo[0].desc + "\n");
QString str(m_versionInfo[0].desc);
if (!str.isEmpty())
{
ui->label_detectResult->setText(tr("Discover the new version : ") +
m_versionInfo[0].version +
tr(" ,the current version is : ") + currVersion + "\n" + "\n" +
tr("upgrade contents: \n") +
m_versionInfo[0].desc + "\n");
}
else
{
ui->label_detectResult->setText(tr("Discover the new version : ") +
m_versionInfo[0].version +
tr(" ,the current version is : ") + currVersion);
}
}
}