Added image to streamermode user popup (#1995)
* Added image to streamermode user popup * Update CHANGELOG.md * swapparoo Co-authored-by: fourtf <tf.four@gmail.com>
This commit is contained in:
@@ -41,6 +41,7 @@ Resources2::Resources2()
|
||||
this->split.move = QPixmap(":/split/move.png");
|
||||
this->split.right = QPixmap(":/split/right.png");
|
||||
this->split.up = QPixmap(":/split/up.png");
|
||||
this->streamerMode = QPixmap(":/streamerMode.png");
|
||||
this->twitch.admin = QPixmap(":/twitch/admin.png");
|
||||
this->twitch.automod = QPixmap(":/twitch/automod.png");
|
||||
this->twitch.broadcaster = QPixmap(":/twitch/broadcaster.png");
|
||||
|
||||
@@ -55,6 +55,7 @@ public:
|
||||
QPixmap right;
|
||||
QPixmap up;
|
||||
} split;
|
||||
QPixmap streamerMode;
|
||||
struct {
|
||||
QPixmap admin;
|
||||
QPixmap automod;
|
||||
|
||||
@@ -577,7 +577,11 @@ void UserInfoPopup::updateUserData()
|
||||
[] {
|
||||
// failure
|
||||
});
|
||||
if (!isInStreamerMode())
|
||||
if (isInStreamerMode())
|
||||
{
|
||||
this->ui_.avatarButton->setPixmap(getResources().streamerMode);
|
||||
}
|
||||
else
|
||||
{
|
||||
this->loadAvatar(user.profileImageUrl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user