mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Add option to open a user's chat in a new tab from the usercard avatar context menu (#3625)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
parent
b825493d6e
commit
d85d9d4910
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue