Add MP status to launcher summary.
This commit is contained in:
parent
a46c7ca8e4
commit
f12de69056
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue