citra_qt/multiplayer: retranslate multiplayer dialogs

This commit is contained in:
zhupengfei
2018-10-09 23:08:33 +08:00
parent f405134913
commit 748a9849ec
11 changed files with 39 additions and 0 deletions

View File

@ -49,6 +49,10 @@ DirectConnectWindow::DirectConnectWindow(QWidget* parent)
DirectConnectWindow::~DirectConnectWindow() = default;
void DirectConnectWindow::RetranslateUi() {
ui->retranslateUi(this);
}
void DirectConnectWindow::Connect() {
if (!ui->nickname->hasAcceptableInput()) {
NetworkMessage::ShowError(NetworkMessage::USERNAME_NOT_VALID);