mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Qt/NetPlay: Show feedback for index adding
This commit is contained in:
parent
d90d641ec7
commit
8b6bb39e82
6 changed files with 50 additions and 1 deletions
|
@ -393,6 +393,19 @@ void NetPlayDialog::OnChat()
|
|||
});
|
||||
}
|
||||
|
||||
void NetPlayDialog::OnIndexAdded(bool success, const std::string error)
|
||||
{
|
||||
DisplayMessage(success ? tr("Successfully added to the NetPlay index") :
|
||||
tr("Failed to add this session to the NetPlay index: %1")
|
||||
.arg(QString::fromStdString(error)),
|
||||
success ? "green" : "red");
|
||||
}
|
||||
|
||||
void NetPlayDialog::OnIndexRefreshFailed(const std::string error)
|
||||
{
|
||||
DisplayMessage(QString::fromStdString(error), "red");
|
||||
}
|
||||
|
||||
void NetPlayDialog::OnStart()
|
||||
{
|
||||
if (!Settings::Instance().GetNetPlayClient()->DoAllPlayersHaveGame())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue