1
0
Fork 0

Add MP status to launcher summary.

This commit is contained in:
James Turner 2016-11-07 13:00:57 +01:00
parent a46c7ca8e4
commit f12de69056

View file

@ -614,6 +614,11 @@ QtLauncher::QtLauncher() :
connect(m_ui->msaaCheckbox, SIGNAL(toggled(bool)),
this, SLOT(updateSettingsSummary()));
connect(m_ui->mpBox, SIGNAL(toggled(bool)),
this, SLOT(updateSettingsSummary()));
connect(m_ui->mpCallsign, SIGNAL(textChanged(QString)),
this, SLOT(updateSettingsSummary()));
connect(m_ui->rembrandtCheckbox, SIGNAL(toggled(bool)),
this, SLOT(onRembrandtToggled(bool)));
connect(m_ui->terrasyncCheck, &QCheckBox::toggled,
@ -1337,6 +1342,10 @@ void QtLauncher::updateSettingsSummary()
summary.append("paused");
}
if (m_ui->mpBox->isChecked()) {
summary.append(tr("multiplayer: %1").arg(m_ui->mpCallsign->text()));
}
QString s = summary.join(", ");
s[0] = s[0].toUpper();
m_ui->settingsDescription->setText(s);