mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Added image links to the badge context menu (#2667)
This commit is contained in:
parent
c3d61ad77b
commit
675f99e9cc
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
## Unversioned
|
## Unversioned
|
||||||
|
|
||||||
|
- Minor: Added image links to the badge context menu. (#2667)
|
||||||
- Minor: Added a setting to hide Twitch Predictions badges. (#2668)
|
- 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: Added missing Copy/Open link context menu entries to emotes in Emote Picker. (#2670)
|
||||||
- Bugfix: Fixed visual glitch with smooth scrolling. (#2084)
|
- Bugfix: Fixed visual glitch with smooth scrolling. (#2084)
|
||||||
|
|
|
@ -1827,6 +1827,13 @@ void ChannelView::addContextMenuItems(
|
||||||
auto menu = new QMenu;
|
auto menu = new QMenu;
|
||||||
previousMenu = menu;
|
previousMenu = menu;
|
||||||
|
|
||||||
|
if (creatorFlags.hasAny({MessageElementFlag::Badges}))
|
||||||
|
{
|
||||||
|
auto badgeElement = dynamic_cast<const BadgeElement *>(&creator);
|
||||||
|
addEmoteContextMenuItems(*badgeElement->getEmote(), creatorFlags,
|
||||||
|
*menu);
|
||||||
|
}
|
||||||
|
|
||||||
// Emote actions
|
// Emote actions
|
||||||
if (creatorFlags.hasAny(
|
if (creatorFlags.hasAny(
|
||||||
{MessageElementFlag::EmoteImages, MessageElementFlag::EmojiImage}))
|
{MessageElementFlag::EmoteImages, MessageElementFlag::EmojiImage}))
|
||||||
|
|
Loading…
Reference in a new issue