mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-12-02 10:43:32 +01:00
Merge pull request #7202 from Techjar/better-netplay-errors
Improve NetPlay connection error handling
This commit is contained in:
6 files changed
+24
-12
No files matched your search
@@ -578,6 +578,14 @@ void NetPlayDialog::OnConnectionLost()
|
||||
DisplayMessage(tr("Lost connection to NetPlay server..."), "red");
|
||||
}
|
||||
|
||||
void NetPlayDialog::OnConnectionError(const std::string& message)
|
||||
{
|
||||
QueueOnObject(this, [this, message] {
|
||||
QMessageBox::critical(this, tr("Error"),
|
||||
tr("Failed to connect to server: %1").arg(tr(message.c_str())));
|
||||
});
|
||||
}
|
||||
|
||||
void NetPlayDialog::OnTraversalError(TraversalClient::FailureReason error)
|
||||
{
|
||||
QueueOnObject(this, [this, error] {
|
||||
|
||||
Reference in new issue
Block a user