调整获取版本号方式

This commit is contained in:
yangjiaxuan 2023-08-22 18:22:17 +08:00
parent d00f2b8702
commit 3037687986
1 changed files with 3 additions and 1 deletions

View File

@ -48,6 +48,7 @@
#include "app_about_info/appAboutInfo.h"
#include <assert.h>
#include "lang/app_language.h"
#include "huagao/brand.h"
#define PASSWORD_KEY 4
@ -3229,7 +3230,8 @@ static HGResult getCurrVersion(HGChar* version, HGUInt maxLen)
void MainWindow::on_act_about_triggered()
{
HGChar version[32] = { 0 };
getCurrVersion(version, 32);
//getCurrVersion(version, 32);
sprintf(version, "%d.%d.%d.%d", VERSION_MAIN, VERSION_SUB, VERSION_BUILD1, VERSION_PATCH);
QString title = tr("about %1").arg(windowTitle());
QString content;