mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
parent
ba06b10135
commit
d25dee10b2
|
@ -1648,10 +1648,15 @@ void ChannelView::addContextMenuItems(
|
|||
const auto &creator = hoveredElement->getCreator();
|
||||
auto creatorFlags = creator.getFlags();
|
||||
|
||||
static QMenu *previousMenu = nullptr;
|
||||
if (previousMenu != nullptr)
|
||||
{
|
||||
previousMenu->deleteLater();
|
||||
previousMenu = nullptr;
|
||||
}
|
||||
|
||||
auto menu = new QMenu;
|
||||
connect(menu, &QMenu::aboutToHide, [menu] {
|
||||
menu->deleteLater(); //
|
||||
});
|
||||
previousMenu = menu;
|
||||
|
||||
// Emote actions
|
||||
if (creatorFlags.hasAny(
|
||||
|
|
Loading…
Reference in a new issue