mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Qt/NetPlay: Show feedback for index adding
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user