mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -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())
|
||||
|
@ -60,6 +60,9 @@ public:
|
||||
void OnGameStartAborted() override;
|
||||
void OnGolferChanged(bool is_golfer, const std::string& golfer_name) override;
|
||||
|
||||
void OnIndexAdded(bool success, const std::string error) override;
|
||||
void OnIndexRefreshFailed(const std::string error) override;
|
||||
|
||||
bool IsRecording() override;
|
||||
std::string FindGame(const std::string& game) override;
|
||||
std::shared_ptr<const UICommon::GameFile> FindGameFile(const std::string& game) override;
|
||||
|
Reference in New Issue
Block a user