fix: Remove "Show chatter list" entry from split header menu for non-mods (#5336)

This commit is contained in:
pajlada 2024-04-20 11:14:23 +02:00 committed by GitHub
parent 7c97e6bcc7
commit 992ea88884
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View file

@ -11,6 +11,7 @@
- Bugfix: Fixed links having `http://` added to the beginning in certain cases. (#5323) - Bugfix: Fixed links having `http://` added to the beginning in certain cases. (#5323)
- Bugfix: Fixed topmost windows from losing their status after opening dialogs on Windows. (#5330) - Bugfix: Fixed topmost windows from losing their status after opening dialogs on Windows. (#5330)
- Bugfix: Fixed a gap appearing when using filters on `/watching`. (#5329) - Bugfix: Fixed a gap appearing when using filters on `/watching`. (#5329)
- Bugfix: Removed the remnant "Show chatter list" menu entry for non-moderators. (#5336)
- Dev: Changed the order of the query parameters for Twitch player URLs. (#5326) - Dev: Changed the order of the query parameters for Twitch player URLs. (#5326)
## 2.5.0-beta.1 ## 2.5.0-beta.1

View file

@ -525,9 +525,12 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
if (twitchChannel) if (twitchChannel)
{ {
moreMenu->addAction( if (twitchChannel->hasModRights())
"Show chatter list", this->split_, &Split::showChatterList, {
h->getDisplaySequence(HotkeyCategory::Split, "openViewerList")); moreMenu->addAction(
"Show chatter list", this->split_, &Split::showChatterList,
h->getDisplaySequence(HotkeyCategory::Split, "openViewerList"));
}
moreMenu->addAction("Subscribe", this->split_, &Split::openSubPage); moreMenu->addAction("Subscribe", this->split_, &Split::openSubPage);