mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Show the toggle mod mode button when mod buttons are enabled. (#1518)
* Fix #1288 Show the toggle mod mode button when mod buttons are enabled. * Automatic formatting ain't good enough i guess.
This commit is contained in:
parent
93a6c55ed3
commit
bfee75ec58
|
@ -577,11 +577,16 @@ void SplitHeader::updateModerationModeIcon()
|
|||
auto channel = this->split_->getChannel();
|
||||
auto twitchChannel = dynamic_cast<TwitchChannel *>(channel.get());
|
||||
|
||||
if (twitchChannel != nullptr && twitchChannel->hasModRights())
|
||||
if (twitchChannel != nullptr &&
|
||||
(twitchChannel->hasModRights() || moderationMode))
|
||||
{
|
||||
this->moderationButton_->show();
|
||||
}
|
||||
else
|
||||
{
|
||||
this->moderationButton_->hide();
|
||||
}
|
||||
}
|
||||
|
||||
void SplitHeader::paintEvent(QPaintEvent *)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue