citra_qt: Add a moderation dialog

The dialog currently supports accessing the ban list and removing entries from it.
This commit is contained in:
zhupengfei
2018-11-24 16:22:14 +08:00
parent 7acd2664dd
commit 6359b6094c
9 changed files with 273 additions and 0 deletions

View File

@@ -226,6 +226,12 @@ void MultiplayerState::OnOpenNetworkRoom() {
if (client_room == nullptr) {
client_room = new ClientRoomWindow(this);
}
const std::string host_username = member->GetRoomInformation().host_username;
if (host_username.empty()) {
client_room->SetModPerms(false);
} else {
client_room->SetModPerms(member->GetUsername() == host_username);
}
BringWidgetToFront(client_room);
return;
}