mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Only show VIP buttons if broadcaster (#1999)
This commit is contained in:
parent
3450b1cc9d
commit
b67e20d962
1 changed files with 4 additions and 1 deletions
|
@ -217,7 +217,8 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically)
|
|||
});
|
||||
|
||||
// userstate
|
||||
this->userStateChanged_.connect([this, mod, unmod]() mutable {
|
||||
this->userStateChanged_.connect([this, mod, unmod, vip,
|
||||
unvip]() mutable {
|
||||
TwitchChannel *twitchChannel =
|
||||
dynamic_cast<TwitchChannel *>(this->channel_.get());
|
||||
|
||||
|
@ -235,6 +236,8 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically)
|
|||
}
|
||||
mod->setVisible(visibilityModButtons);
|
||||
unmod->setVisible(visibilityModButtons);
|
||||
vip->setVisible(visibilityModButtons);
|
||||
unvip->setVisible(visibilityModButtons);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue