Fix popout player url (#1730)
* Update TwitchChannel.cpp * Reformatting forsenY * fixed other things * xd * Update TwitchChannel.cpp
This commit is contained in:
@@ -547,8 +547,9 @@ void Split::openBrowserPlayer()
|
||||
ChannelPtr channel = this->getChannel();
|
||||
if (auto twitchChannel = dynamic_cast<TwitchChannel *>(channel.get()))
|
||||
{
|
||||
QDesktopServices::openUrl("https://player.twitch.tv/?channel=" +
|
||||
twitchChannel->getName());
|
||||
QDesktopServices::openUrl(
|
||||
"https://player.twitch.tv/?parent=twitch.tv&channel=" +
|
||||
twitchChannel->getName());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -288,7 +288,9 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
|
||||
if (tc != nullptr)
|
||||
{
|
||||
StreamView *view = new StreamView(
|
||||
_channel, "https://player.twitch.tv/?channel=" + tc->name);
|
||||
_channel,
|
||||
"https://player.twitch.tv/?parent=twitch.tv&channel=" +
|
||||
tc->name);
|
||||
view->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
view->show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user