Added Subscribe option to channel menu

Added the option to visit the subscription page of a channel from chatterino
This commit is contained in:
TranRed
2019-07-16 21:59:04 +02:00
parent fb6a55847d
commit a768515849
3 changed files with 14 additions and 0 deletions
+10
View File
@@ -636,6 +636,16 @@ void Split::showViewerList()
viewerDock->activateWindow();
}
void Split::openSubPage()
{
ChannelPtr channel = this->getChannel();
if (auto twitchChannel = dynamic_cast<TwitchChannel *>(channel.get()))
{
QDesktopServices::openUrl(twitchChannel->subscriptionUrl());
}
}
void Split::copyToClipboard()
{
QApplication::clipboard()->setText(this->view_->getSelectedText());