Added image links to the badge context menu (#2667)

This commit is contained in:
Paweł 2021-04-25 15:16:32 +02:00 committed by GitHub
parent c3d61ad77b
commit 675f99e9cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -2,6 +2,7 @@
## Unversioned
- Minor: Added image links to the badge context menu. (#2667)
- Minor: Added a setting to hide Twitch Predictions badges. (#2668)
- Bugfix: Added missing Copy/Open link context menu entries to emotes in Emote Picker. (#2670)
- Bugfix: Fixed visual glitch with smooth scrolling. (#2084)

View file

@ -1827,6 +1827,13 @@ void ChannelView::addContextMenuItems(
auto menu = new QMenu;
previousMenu = menu;
if (creatorFlags.hasAny({MessageElementFlag::Badges}))
{
auto badgeElement = dynamic_cast<const BadgeElement *>(&creator);
addEmoteContextMenuItems(*badgeElement->getEmote(), creatorFlags,
*menu);
}
// Emote actions
if (creatorFlags.hasAny(
{MessageElementFlag::EmoteImages, MessageElementFlag::EmojiImage}))