1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-23 12:57:45 +00:00

Add boot version info to settings

This commit is contained in:
redstrate 2021-12-02 15:04:28 -05:00
parent 34eb4b4f3c
commit 4d0ccedbb4

View file

@ -92,7 +92,7 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, LauncherCore& core, QWidg
gameBoxLayout->addWidget(gameDirectoryButton); gameBoxLayout->addWidget(gameDirectoryButton);
expansionVersionLabel = new QLabel(); expansionVersionLabel = new QLabel();
gameBoxLayout->addWidget(expansionVersionLabel); gameBoxLayout->addRow("Version Info", expansionVersionLabel);
auto loginBox = new QGroupBox("Login Options"); auto loginBox = new QGroupBox("Login Options");
auto loginBoxLayout = new QFormLayout(); auto loginBoxLayout = new QFormLayout();
@ -301,6 +301,10 @@ void SettingsWindow::reloadControls() {
expansionVersionLabel->setText("No game installed."); expansionVersionLabel->setText("No game installed.");
} else { } else {
QString expacString; QString expacString;
expacString += "Boot";
expacString += QString(" (%1)\n").arg(profile.bootVersion);
if(profile.installedMaxExpansion >= 0) { if(profile.installedMaxExpansion >= 0) {
expacString += "A Realm Reborn"; expacString += "A Realm Reborn";
expacString += QString(" (%1)\n").arg(profile.gameVersion); expacString += QString(" (%1)\n").arg(profile.gameVersion);