Moved Software Info API values to ensure translation

* Resolves #4538
This commit is contained in:
Chris M
2025-01-08 10:21:45 +11:00
committed by Adam Honse
parent 210f7c4993
commit 6ff4919d75

View File

@@ -20,8 +20,6 @@ OpenRGBSoftwareInfoPage::OpenRGBSoftwareInfoPage(QWidget *parent) :
ui->setupUi(this);
ui->VersionValue->setText(VERSION_STRING);
ui->SDKVersionValue->setText(QString::number(OPENRGB_SDK_PROTOCOL_VERSION));
ui->PluginAPIVersionValue->setText(QString::number(OPENRGB_PLUGIN_API_VERSION));
ui->BuildDateValue->setText(BUILDDATE_STRING);
ui->GitCommitIDValue->setText(GIT_COMMIT_ID);
ui->GitCommitDateValue->setText(GIT_COMMIT_DATE);
@@ -38,5 +36,8 @@ void OpenRGBSoftwareInfoPage::changeEvent(QEvent *event)
if(event->type() == QEvent::LanguageChange)
{
ui->retranslateUi(this);
ui->SDKVersionValue->setText(QString::number(OPENRGB_SDK_PROTOCOL_VERSION));
ui->PluginAPIVersionValue->setText(QString::number(OPENRGB_PLUGIN_API_VERSION));
}
}