diff --git a/CHANGELOG.md b/CHANGELOG.md index 29918b7b2..66152153e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Minor: Fixed being unable to load Twitch Usercards from the `/mentions` tab. (#3623) - Minor: Add information about the user's operating system in the About page. (#3663) - Minor: Added chatter count for each category in viewer list. (#3683) +- Minor: Added option to open a user's chat in a new tab from the usercard profile picture context menu. (#3625) - Bugfix: Fixed live notifications for usernames containing uppercase characters. (#3646) - Bugfix: Fixed certain settings dialogs appearing behind the main window, when `Always on top` was used. (#3679) - Bugfix: Fixed an issue in the emote picker where an emotes tooltip would not properly disappear. (#3686) diff --git a/src/widgets/dialogs/UserInfoPopup.cpp b/src/widgets/dialogs/UserInfoPopup.cpp index a70494b98..b2c8bd4f5 100644 --- a/src/widgets/dialogs/UserInfoPopup.cpp +++ b/src/widgets/dialogs/UserInfoPopup.cpp @@ -305,6 +305,19 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, QWidget *parent) loginName.toLower())); }); + menu->addAction( + "Open channel in a new tab", this, [loginName] { + ChannelPtr channel = + getApp()->twitch->getOrAddChannel( + loginName); + auto &nb = getApp() + ->windows->getMainWindow() + .getNotebook(); + SplitContainer *container = nb.addPage(true); + Split *split = new Split(container); + split->setChannel(channel); + container->appendSplit(split); + }); menu->popup(QCursor::pos()); menu->raise(); }