Remove USEWEBENGINE (#4757)
This code has been sitting behind a define since 2018 (de3a490). I'm not opposed to this code coming back however in this state, it feels better to remove it.
This commit is contained in:
@@ -524,11 +524,6 @@ void Split::addShortcuts()
|
||||
this->setFiltersDialog();
|
||||
return "";
|
||||
}},
|
||||
{"startWatching",
|
||||
[this](std::vector<QString>) -> QString {
|
||||
this->startWatching();
|
||||
return "";
|
||||
}},
|
||||
{"openInBrowser",
|
||||
[this](std::vector<QString>) -> QString {
|
||||
if (this->getChannel()->getType() == Channel::Type::TwitchWhispers)
|
||||
@@ -1401,22 +1396,6 @@ void Split::openSubPage()
|
||||
}
|
||||
}
|
||||
|
||||
void Split::startWatching()
|
||||
{
|
||||
#ifdef USEWEBENGINE
|
||||
ChannelPtr _channel = this->getChannel();
|
||||
TwitchChannel *tc = dynamic_cast<TwitchChannel *>(_channel.get());
|
||||
|
||||
if (tc != nullptr)
|
||||
{
|
||||
StreamView *view = new StreamView(
|
||||
_channel,
|
||||
"https://player.twitch.tv/?parent=twitch.tv&channel=" + tc->name);
|
||||
view->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
view->show();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
void Split::setFiltersDialog()
|
||||
{
|
||||
SelectChannelFiltersDialog d(this->getFilters(), this);
|
||||
|
||||
Reference in New Issue
Block a user