Merge pull request #12554 from german77/directconnect

yuzu: Use displayed port on direct connect
master
liamwhite 2024-01-02 13:09:53 +07:00 committed by GitHub
commit 148ad0cf0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -94,7 +94,7 @@ void DirectConnectWindow::Connect() {
// Store settings
UISettings::values.multiplayer_nickname = ui->nickname->text().toStdString();
UISettings::values.multiplayer_ip = ui->ip->text().toStdString();
if (ui->port->isModified() && !ui->port->text().isEmpty()) {
if (!ui->port->text().isEmpty()) {
UISettings::values.multiplayer_port = ui->port->text().toInt();
} else {
UISettings::values.multiplayer_port = UISettings::values.multiplayer_port.GetDefault();