Add 'open in mod view' button to split context menu (#2321)

This commit is contained in:
Lewis Gibson
2021-01-02 16:25:27 +00:00
committed by GitHub
parent d3b2ab1d8a
commit 88e31b12a7
5 changed files with 21 additions and 0 deletions
+11
View File
@@ -630,6 +630,17 @@ void Split::openBrowserPlayer()
}
}
void Split::openModViewInBrowser()
{
auto channel = this->getChannel();
if (auto twitchChannel = dynamic_cast<TwitchChannel *>(channel.get()))
{
QDesktopServices::openUrl("https://twitch.tv/moderator/" +
twitchChannel->getName());
}
}
void Split::openInStreamlink()
{
try