mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-09 03:42:58 -08:00
fix playericon missing in local games (#5562)
This commit is contained in:
@@ -264,11 +264,13 @@ static QString getIconType(const bool isBuddy, const QString &privLevel)
|
||||
{
|
||||
if (isBuddy) {
|
||||
return "star";
|
||||
} else if (privLevel.toLower() != "none") {
|
||||
return QString("pawn_%1").arg(privLevel.toLower());
|
||||
} else {
|
||||
return "pawn";
|
||||
}
|
||||
|
||||
if (!privLevel.isEmpty() && privLevel.toLower() != "none") {
|
||||
return QString("pawn_%1").arg(privLevel.toLower());
|
||||
}
|
||||
|
||||
return "pawn";
|
||||
}
|
||||
|
||||
QIcon UserLevelPixmapGenerator::generateIconDefault(int height,
|
||||
|
||||
Reference in New Issue
Block a user