Merge pull request #1 from TranRed/subbutton

Added Subscribe option to channel menu
This commit is contained in:
TranRed
2019-07-17 16:49:16 +02:00
parent fb6a55847d
commit d3aa3694f2
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());