citra_qt: use Citra Web Service username as default multiplayer nickname
This commit is contained in:
@ -33,6 +33,10 @@ DirectConnectWindow::DirectConnectWindow(QWidget* parent)
|
||||
|
||||
ui->nickname->setValidator(validation.GetNickname());
|
||||
ui->nickname->setText(UISettings::values.nickname);
|
||||
if (ui->nickname->text().isEmpty() && !Settings::values.citra_username.empty()) {
|
||||
// Use Citra Web Service user name as nickname by default
|
||||
ui->nickname->setText(QString::fromStdString(Settings::values.citra_username));
|
||||
}
|
||||
ui->ip->setValidator(validation.GetIP());
|
||||
ui->ip->setText(UISettings::values.ip);
|
||||
ui->port->setValidator(validation.GetPort());
|
||||
|
Reference in New Issue
Block a user