diff --git a/src/citra_qt/multiplayer/direct_connect.cpp b/src/citra_qt/multiplayer/direct_connect.cpp index 5cfd3ced86..482679011a 100644 --- a/src/citra_qt/multiplayer/direct_connect.cpp +++ b/src/citra_qt/multiplayer/direct_connect.cpp @@ -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()); diff --git a/src/citra_qt/multiplayer/host_room.cpp b/src/citra_qt/multiplayer/host_room.cpp index 8366f8747f..d08866b13a 100644 --- a/src/citra_qt/multiplayer/host_room.cpp +++ b/src/citra_qt/multiplayer/host_room.cpp @@ -54,6 +54,10 @@ HostRoomWindow::HostRoomWindow(QWidget* parent, QStandardItemModel* list, // Restore the settings: ui->username->setText(UISettings::values.room_nickname); + if (ui->username->text().isEmpty() && !Settings::values.citra_username.empty()) { + // Use Citra Web Service user name as nickname by default + ui->username->setText(QString::fromStdString(Settings::values.citra_username)); + } ui->room_name->setText(UISettings::values.room_name); ui->port->setText(UISettings::values.room_port); ui->max_player->setValue(UISettings::values.max_player); diff --git a/src/citra_qt/multiplayer/lobby.cpp b/src/citra_qt/multiplayer/lobby.cpp index edb73c6c8e..c40c003759 100644 --- a/src/citra_qt/multiplayer/lobby.cpp +++ b/src/citra_qt/multiplayer/lobby.cpp @@ -48,6 +48,10 @@ Lobby::Lobby(QWidget* parent, QStandardItemModel* list, 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 Buttons connect(ui->refresh_list, &QPushButton::pressed, this, &Lobby::RefreshLobby);