From bfee75ec5855f997c43abb96d77f711976242ecf Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Sun, 26 Jan 2020 10:10:40 +0100 Subject: [PATCH] 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. --- src/widgets/splits/SplitHeader.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/widgets/splits/SplitHeader.cpp b/src/widgets/splits/SplitHeader.cpp index d86df9b5c..79153b44c 100644 --- a/src/widgets/splits/SplitHeader.cpp +++ b/src/widgets/splits/SplitHeader.cpp @@ -577,10 +577,15 @@ void SplitHeader::updateModerationModeIcon() auto channel = this->split_->getChannel(); auto twitchChannel = dynamic_cast(channel.get()); - if (twitchChannel != nullptr && twitchChannel->hasModRights()) + if (twitchChannel != nullptr && + (twitchChannel->hasModRights() || moderationMode)) + { this->moderationButton_->show(); + } else + { this->moderationButton_->hide(); + } } void SplitHeader::paintEvent(QPaintEvent *)